httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Hansen <joe.hansen...@gmail.com>
Subject [users@httpd] Apache + Tomcat + mod_jk ; Wrong content type. Why?
Date Wed, 03 Oct 2012 05:48:31 GMT
Hi All,

We are using Apache 2.2 + Tomcat 7 + mod_jk (all 64-bit) on a RedHat box.

I have configured the settings such that the static content like css and
javascript are served by httpd rather than tomcat. However, when I do so,
the css files are returned with a content type=text/plain rather than
content type=text/css. Why is that so?

Here are the snippets from the relevant files..

/* workers.properties */
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009


/* httpd-vhosts.conf */
DocumentRoot "/hosts/example.com/webapps/ROOT"
JkUnMount  /css/* worker1
JkUnMount  /img/* worker1
JkUnMount  /js/* worker1
JkMount  /* worker1


Thanks,
Joe

Mime
View raw message