[opencms-dev] Using Apache as Reverse Proxy

Pascal Drouin pascal.drouin at douane.finances.gouv.fr
Fri Sep 2 17:08:39 CEST 2005


Hi, everybody,
I try to setup apache as Reverse proxy  using the Apache config howto...
I used Apache 2.0 with Tomcat 4.1 and OPENCMS 6.0RC1.
After a little bit of tuning , all seems to work fine, except the 
explorer view:
after logging , it's not possible to access the extended properties: I 
get "Page not found" in the right view of explorer, and Apache log the 
message:
[02/Sep/2005:16:56:57 +0200] "POST 
/system/workplace/commons/property.jsp HTTP/1.1" 302 -
which mean that the URL as moved.
My apache virtual host conf file:
################# IP-based Virtual Hosts
<VirtualHost 10.115.1.232 >
ServerName OpencmsServer
ErrorLog logs/open-error_log
RewriteEngine On
SetEnvIf Request_URI "\/open-cid\/*" redirect
CustomLog logs/localhost-access.log common env=!redirect
<Proxy *>
        Order Deny,Allow
        Deny from all
        Allow from 10.115.
</Proxy>
ProxyRequests   off
#Redirection for static export
RewriteCond %{REQUEST_URI} ^/export/(.*) [NC]
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
RewriteRule .* 
http://127.0.0.1:8080/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
ProxyPass         /opencms                  http://127.0.0.1:8080/opencms
ProxyPassReverse  /opencms                  http://127.0.0.1:8080/opencms
ProxyPass         /resources/           !
ProxyPass         /export/              !
ProxyPass         /                     http://127.0.0.1:8080/opencms/
ProxyPassReverse  /                     http://127.0.0.1:8080/opencms
ProxyPass         /system/              http://127.0.0.1:8080/system/
ProxyPassReverse  /system/              http://127.0.0.1:8080/system/
</VirtualHost>



Any idea?

Thanks for advance




More information about the opencms-dev mailing list