You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2007/09/06 15:48:11 UTC
[Lenya Wiki] Update of "HowToProxyLenyaOnJettyWithApache" by drseuk
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by drseuk:
http://wiki.apache.org/lenya/HowToProxyLenyaOnJettyWithApache
The comment on the change is:
Added content to my "dummies guide" to proxying I'd forgotten to add ages ago
New page:
If you're not too familiar with the Apache server or don't understand proxying very well, the apparently simple task of getting http://www.foo.com (i.e., your domain name) to point to the your live lenya home page can be quite daunting. If you've just got a single server and only one publication, here's the easy way (for Lenya 1.2.5):
== Configuring Lenya ==
In $pub/config/publication.xconf, change the proxy elements so (obviously changing www.foo.com to your own domain name):
{{{
<!--
For information about these settings, read
http://lenya.apache.org/1_2_x/components/deployment/proxying.html
-->
<!--
<proxy area="live" ssl="true" url="https://www.foo.com/ssl/default"/>
-->
<proxy area="live" ssl="false" url="http://www.foo.com"/>
<!--
<proxy area="authoring" ssl="true" url="https://www.foo.com/lenya/default/authoring"/>
<proxy area="authoring" ssl="false" url="http://www.foo.com/lenya/default/authoring"/>
-->
}}}
Here we are only proxying the live pages. That is the authoring pages will still be at http://www.foo.com:8080 (or whatever port you have Lenya on).
Restart Lenya
== Configuring Apache ==
In your apache2.conf file, add the following at the end:
{{{
ProxyRequests Off
ProxyPass /default/live/css http://www.foo.com/css
ProxyPassReverse /default/live/css http://www.foo.com/css
ProxyPass /default/live/images http://www.foo.com/images
ProxyPassReverse /default/live/images http://www.foo.com/images
ProxyPass / http://www.foo.com:8888/default/live/
ProxyPassReverse / http://www.foo.com:8888/default/live/
}}}
Restart Apache
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org