You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/10/30 18:29:39 UTC
svn commit: r590166 - /lenya/trunk/tools/proxytest/apache_vhosts.conf
Author: nettings
Date: Tue Oct 30 10:29:38 2007
New Revision: 590166
URL: http://svn.apache.org/viewvc?rev=590166&view=rev
Log:
some tweaks to the proxy test scaffold. it still falls apart the moment
the servlet issues a redirect - seems it does not honor the proxy
settings.
Modified:
lenya/trunk/tools/proxytest/apache_vhosts.conf
Modified: lenya/trunk/tools/proxytest/apache_vhosts.conf
URL: http://svn.apache.org/viewvc/lenya/trunk/tools/proxytest/apache_vhosts.conf?rev=590166&r1=590165&r2=590166&view=diff
==============================================================================
--- lenya/trunk/tools/proxytest/apache_vhosts.conf (original)
+++ lenya/trunk/tools/proxytest/apache_vhosts.conf Tue Oct 30 10:29:38 2007
@@ -21,10 +21,16 @@
ProxyRequests Off
# force SSL protection for authoring:
- RewriteRule ^/lenya/(.*)/authoring/(.*) https://www.example.com/lenya/$1/authoring/$2
+ RewriteRule ^/lenya/(.*)/authoring/(.*) https://www.example.com/lenya/$1/authoring/$2 [R]
+
+ # map "customer" to the publication id "default":
+ RewriteRule ^/lenya/customer/(.*) ajp://localhost:8009/webapp/default/$1 [P]
+
# this is the proxy for global resources:
RewriteRule ^/lenya/(.*) ajp://localhost:8009/webapp/$1 [P]
- ProxyPassReverse /lenya/ ajp://localhost:8009/webapp/
+
+ ProxyPassReverse /lenya/customer ajp://localhost:8009/webapp/default
+ ProxyPassReverse /lenya ajp://localhost:8009/webapp
ErrorLog /tmp/LenyaTest_www.example.com-errors
CustomLog /tmp/LenyaTest_www.example.com-access combined
@@ -54,10 +60,16 @@
RewriteEngine On
ProxyRequests Off
+
+ # map "customer" to the publication id "default":
+ RewriteRule ^/lenya/customer/(.*) ajp://localhost:8009/webapp/default/$1 [P]
+
# requests to /lenya are handled by jetty
# (that means you can use all other paths, including "/" for
# other purposes.
RewriteRule ^/lenya/(.*) ajp://localhost:8009/webapp/$1 [P]
+
+ ProxyPassReverse /lenya/customer ajp://localhost:8009/webapp/default
ProxyPassReverse /lenya/ ajp://localhost:8009/webapp/
ErrorLog /tmp/LenyaTest_www.example.com-SSL-errors
@@ -86,7 +98,8 @@
# catch funky addresses with "/"s and "."s to make
# cocoon matching behave like apache (where "foo/" and "foo" and "/./foo" all do the same):
# FIXME: could use some review and better documentation. Does this have security implications as well?
- RewriteRule ^/([^/\.]+)$ $1/ [R]
+ # RewriteRule ^/([^/\.]+)$ $1/ [R]
+
# all requests to customer.example.com are passed to the live area:
RewriteRule ^/(.*) ajp://localhost:8009/webapp/default/live/$1 [P,L]
ProxyPassReverse / ajp://localhost:8009/webapp/default/live
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org