cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akber Choudhry <>
Subject mod_rewrite mod_webapp config contribl
Date Fri, 01 Mar 2002 21:45:12 GMT
On Fri, 1 Mar 2002, Stefano Mazzocchi wrote:

> Can you donate your mod_rewrite configurations? that would make it a
> good example in the docs, at least.
Here it is -

ErrorDocument 404 /cgi-bin/errors/monitor.cgi
ErrorDocument 500 /cgi-bin/errors/monitor.cgi

# Rewrite module has to be the last module in the Apache AddModule list
RewriteEngine On

# let apache handle

RewriteRule \.(gif|jpg|png|css|txt|html|js|pdf|cab|jar|php|xml)$ - [L]
RewriteRule ^/cgi-bin - [L]
# my apache site monitor
RewriteRule ^/watch-info - [L]
RewriteRule ^/$	/cocoon/index [L,PT]
# other servlet applications - passed through
RewriteRule ^/main - [L]
# everything  else to cocoon
RewriteRule ^/(.*)$ /cocooon/$1 [L,PT]

DocumentRoot /home/
ScriptAlias /cgi-bin/ /home/
DirectoryIndex	index.html index.jsp index.php

# make sure tomcat  config webapp connector  only binds to for security - and here
we access it through the same loopback interface
WebAppConnection warpcocoon warp localhost:9999
WebAppDeploy cocoon warpcocoon /cocoon
# no need for different connection of other tomcat webapp
WebAppDeploy main warpcocoon /main
> different builds --
> Please, elaborate more on this.
will do, probably over the weekend

Akber Choudhry
Dyanet Inc.

To unsubscribe, e-mail:
For additional commands, email:

View raw message