Hi,
We would like to serve static content (e.g. pictures, css, js, etc) from
our Apache 2 frontends, but the Roller-internal resource-rewrites makes
it hard for us.
Does anyone have a working solution? Here is what we have come up with so
far:
ProxyPreserveHost On
RewriteEngine on
RewriteRule ^/([\w.-]+)/page/css/(.*).css$ /themes/$2/css/$2.css
RewriteRule ^/([\w.-]+)/resource/(.*)$ /resources/$1/$2
RewriteRule ^.*\.(gif|jpg|jpeg|png|bmp|ico|js|css)$ - [L]
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ http://resin:9002$1 [L,P]
ProxyPassReverse / http://resin:9002/
Why are these rewrites made in the first place?
Cheers!
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!