[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
         # 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       .* 
exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
         ProxyPass         /cms/                 !
         RedirectPermanent /cms/                 http:// 
         ProxyPass         /resources/           !
         ProxyPass         /export/              !
         ProxyPass         /                     http://
         ProxyPassReverse  /                     http://

More information about the opencms-dev mailing list