I use mod_jk
mod_jk.conf looks like this
so anything not listed here is served static
<VirtualHost www.xxxxxxx.info>
JkAutoAlias /var/www/tomcat/webapps
JkMount / ajp13
JkMount /roller-ui ajp13
JkMount /roller-ui/* ajp13
JkMount /j_security_check ajp13
JkMount /skipjack ajp13
JkMount /holspheal ajp13
JkMount /holspheal/* ajp13
JkMount /skipjack/* ajp13
JkMount /images ajp13
JkMount /images/* ajp13
JkMount /theme ajp13
JkMount /theme/* ajp13
JkMount /themes ajp13
JkMount /themes/* ajp13
JkMount /robots.txt ajp13
JkMount /CommentAuthenticatorServlet ajp13
JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13
mod_jk.conf
</VirtualHost www.xxxxxxx.info>
httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel debug
Include /etc/httpd/conf.d/mod_jk.conf
workers.properites
# workers.properties - ap13
#
# List workers
#worker.list=ajp13
#
workers.tomcat_home=/var/www/tomcat
workers.java_home=/usr/java/jre1.5.0_05/
ps=/
worker.list=ajp13
worker.maintain=30
# Define wrkr
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.type=ajp13
#worker.ajp13.lbfactor=1
worker.ajp13.connection_pool_timeout=30
worker.ajp13.socket_timeout=300
worker.ajp13.socket_keepalive=1
On 3/20/08, Milo <[EMAIL PROTECTED]> wrote:
> 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!
>
>
--
Programming is art