Apache + Tomcat + mod_jk ; Wrong content type. Why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux