Hi Chris,

Many thanks for your reply. I found out that mime_module wasn't enabled. So
I added the following line
LoadModule mime_module modules/mod_mime.so
to httpd.conf file and everything's fine now.

Thanks again!
Joe

On Wed, Oct 3, 2012 at 10:28 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Joe,
>
> On 10/3/12 1:47 AM, Joe Hansen wrote:
> > 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
>
> What does a sample request look like (include full HTTP headers)?
> What does a sample response look like (include full HTTP headers)?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>
> iEYEARECAAYFAlBsZ8cACgkQ9CaO5/Lv0PAQwQCfTp6OVO9Ln9Uak6j/RnD/EMyh
> oQgAnjkHpWaGoA3WRPvUfQtUmW+b09+B
> =8URJ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to