Rovi <ro1vi-cms <at> yahoo.com> writes:

> 
> Hi,
> I need help with setting up the right url for my web site. I followed the 
> direction in http://solprovider.com/lenya/proxy to set up proxy for the live 
> site like this:
> 
> NameVirtualHost *:80
> <VirtualHost *:80>
> ServerName livelenya.domain.com 
> RewriteEngine On
> RewriteRule ^/veg/live/(.*)$ http://127.0.0.1:8888/pub/live/$1 [P] 
> RewriteRule ^/veg/authoring/(.*)$ http://127.0.0.1:8888/pub/live/$1 [P] 
> RewriteRule ^/lenya/(.*)$ http://127.0.0.1:8888/lenya/$1 [P] 
> RewriteRule ^/kupu/(.*)$ http://127.0.0.1:8888/kupu/$1 [P] 
> RewriteRule ^/(.*)$ http://127.0.0.1:8888/pub/live/$1 [P] 
> </VirtualHost>
> 
> The redirect does work - as I can confirm by replacing the last RewriteRule 
> above with another url. But if I set it up exactly like above, and go to 
> livelenya.domain.com from another pc, it actually shows this url 
> (http://127.0.0.1:8888/pub/live/index.html) and takes me to 'Page cannot be 
> displayed' error.
> 
> Basically I am looking to redirect from www.domain.com to 
> www.domain.com/pub/live/index.html; or better still I want www.domain.com to 
> take me directly to www.domain.com/index.html which should be my lenya 
hosted 
> site. And I also want to be able to host multiple lenya publications as well 
> (for example www.anotherdomain.com points to another Lenya publication.
> Can this be done? If yes, would appreciate any pointers. If not, would like 
to 
> know what is the best practice that people follow to host multiple domains 
> against multiple lenya publications.
> (I am all set if I were to forward www.domain.com to http://live.domain.com, 
> for example - but I don't want a sub domain to show up in the url for most 
> part of the publication)
> Thanks!
> 
ok, adding:
ProxyPreserveHost On
to the VirtualHost now lets me go to 
http://livelenya.domain.com/pub/live/index.html when I enter 
http://livelenya.domain.com (it also works to take me to 
http://www.domain.com/pub/live/index.html when I enter http://www.domain.com 
in the address bar). So this is pretty good. 
Now, if I then manually delete /pub/live from the url, it takes me to 
http://www.domain.com/index.html and the page is same as 
http://www.domain.com/pub/live/index.html. Further, the entire navigation 
works great - without any need for /pub/live in the url (which is what I am 
looking for). But the only remaining piece is: why should I need to do it 
manually? Or what can I do so that it jumps to 
http://www.domain.com/index.html automatically after taking the context of the 
directed publication.
I am optimistic that the Apache/Lenya gurus out there would have an answer to 
this. Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to