[opencms-dev] Bug in 404Handler or mod_rewrite?
Alexander Kandzior
alex at opencms.org
Mon Apr 25 09:56:33 CEST 2005
This is a bug in 6b2. It has been fixed in CVS HEAD and so it will be fixed
also in the next beta 3 release, due end of this week.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Daniel Wiesner
> Sent: Monday, April 25, 2005 8:43 AM
> To: 'The OpenCms mailing list'
> Subject: [opencms-dev] Bug in 404Handler or mod_rewrite?
>
> hello,
>
> I configured the on-demand static export feature how
> described in the Alkacon Dicumentation. Everything is
> allright if when I browse the Documentation. All files are
> generated as expected. But if I press the refresh Button or
> the F5 key the images and the stylsheet are disapearing.
> After refreshing again the graphics are ok. Pressing a third
> damaged again ... and so an every second time all graphics ar damaged.
>
>
> Daniel
>
>
> opencms-importexport.xml:
>
> <staticexport enabled="true">
>
> <staticexporthandler>org.opencms.staticexport.CmsOnDemandStati
cExportHandler</staticexporthandler>
> <exportpath>export</exportpath>
> <defaultpropertyvalue>false</defaultpropertyvalue>
> <defaultsuffixes>
> <suffix key=".jpg"/>
> <suffix key=".gif"/>
> <suffix key=".png"/>
> <suffix key=".doc"/>
> <suffix key=".xls"/>
> <suffix key=".ppt"/>
> <suffix key=".pdf"/>
> <suffix key=".txt"/>
> <suffix key=".css"/>
> <suffix key=".zip"/>
> <suffix key=".swf"/>
> </defaultsuffixes>
> <rendersettings>
>
> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
> <vfs-prefix></vfs-prefix>
> <userelativelinks>false</userelativelinks>
>
> <exporturl>http://127.0.0.1:8081${CONTEXT_NAME}/handle404</exporturl>
> <plainoptimization>true</plainoptimization>
> <testresource uri="/system/shared/page.dtd"/>
> <resourcestorender>
> <regex>/sites/.*</regex>
> <regex>/system/galleries/.*</regex>
>
> <regex>/system/modules/.*/resources/.*</regex>
> </resourcestorender>
> </rendersettings>
> </staticexport>
>
>
> server.xml:
>
>
> <Connector port="8080"
> maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> enableLookups="false" redirectPort="8443"
> acceptCount="100"
> debug="0" connectionTimeout="20000"
> disableUploadTimeout="true" />
>
> <Connector port="8081"
> maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="100"
> debug="0" connectionTimeout="20000"
> disableUploadTimeout="true" />
>
>
>
>
>
> h137483:~ # vi /etc/apache2/vhosts.d/test.conf # # Use
> name-based virtual hosting.
> #
> NameVirtualHost *
>
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without
> a known # server name.
> #
>
> <VirtualHost *>
> ServerName DOMAIN.DE
> ServerAdmin admin at DOMAIN.DE
> DocumentRoot "/srv/www/tomcat5/base/webapps"
> #ErrorLog logs/error.log
>
> # Log only non-redirect requests in "normal" log file
> SetEnvIf Request_URI "\/opencms\/*" redirect
> #CustomLog logs/localhost-access-redirect.log
> vhost_common env=redirect
> #CustomLog logs/localhost-access.log vhost_common
> env=!redirect< /FONT>
>
> # Redirect all request to non-existing file in the export
> directory to OpenCms which will generate the files "on the fly"
> RewriteEngine on
> #RewriteLog logs/rewrite.log
> RewriteLogLevel 2
> 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:8081/opencms/handle404?exporturi=/opencms%{RE
QUEST_URI}&%{QUERY_STRING} [P]
>
> # Also redirect all other 404 errors to OpenCms
> ErrorDocument 404
> /system/shared/handle404.html
>
> ProxyPreserveHost on
> RedirectPermanent /opencms/ http://DOMAIN.DE/
> ProxyPass /opencms/ !
>
> ProxyPass /resources/ !
> ProxyPass /export/ !
> ProxyPass /skins/ !
>
> ProxyPass /
> http://127.0.0.1:8081/opencms/opencms/
> ProxyPassReverse /
> http://127.00..1:8081/opencms/opencms/
> </VirtualHost>
>
>
> -----------------------------------------------------------
> AV-Studio Kommunikationsmedien GmbH Halle
> Kurallee 13, D-06114 Halle (Saale)
>
> Fon: +49 (0345) 20 999 -0 * Fax: +49 (0345) 20 999 -20
> email: office at av-studio.de * http://www.av-studio.de
> -----------------------------------------------------------
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list To
> change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list