[opencms-dev] How is handle404 related to static export?
Nigel Kersten
nigel at cofa.unsw.edu.au
Wed Nov 30 01:18:36 CET 2005
I've got Apache2 and Tomcat working together for multiple sites as
per the documentation, (my virtual host config is at the end of this
mail), and there's something I just don't get.
Why do I need the Rewrite stuff for handle404? and how is this
related to static exports?
thanks for any illumination anyone can shed on this...
<VirtualHost *:80>
ServerName opencms.cofa.unsw.edu.au
ServerAdmin webmaster at opencms.cofa.unsw.edu.au
DocumentRoot "/usr/local/apache-tomcat-5.5.12/webapps/ROOT/"
<Directory "/usr/local/apache-tomcat-5.5.12/webapps/ROOT/">
Order allow,deny
Allow from all
</Directory>
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/cms\/*" redirect
RewriteEngine on
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/cms/handle404?
exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /cms/ !
RedirectPermanent /cms/ http://
opencms.cofa.unsw.edu.au/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://
127.0.0.1:8080/cms/
ProxyPassReverse / http://
127.0.0.1:8080/cms/
</VirtualHost>
More information about the opencms-dev
mailing list