Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10F6BDADE for ; Thu, 4 Oct 2012 15:58:57 +0000 (UTC) Received: (qmail 97324 invoked by uid 500); 4 Oct 2012 15:58:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 97240 invoked by uid 500); 4 Oct 2012 15:58:53 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 97231 invoked by uid 99); 4 Oct 2012 15:58:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 15:58:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joe.hansen.at@gmail.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vc0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 15:58:47 +0000 Received: by mail-vc0-f173.google.com with SMTP id fl15so1092426vcb.18 for ; Thu, 04 Oct 2012 08:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PZAzJ5G7OZU/eH5OxjP1kz4etLxGf7azBOtFiPwk/IQ=; b=K6t6vhotWI5B9mteIhHPXRN/tM2Mxf4dqunYmmNYQe1Helq3tL9KByXJjsZtIi1JUT s0TmefDhCZFS1ICYMxpu4v3ImD4YTIOFPx3Sja20qWAyGZ1SeD2L3eiQyJkqRKwFzhMe TqHr/i8ljvCrYtsdqE8ROS2pB1R7QVi44H75jY+q8oSN6qFpfmXIDHqaLuCLJX06nTG5 9RICIEOEvW/eqYVbFkBwrAV2zUikeqFsbcrNbrGz1+liu4snzXdtECkIhWToPeLOW2IY wxfg/vmX7sEBOiosSjK0LLftJTknUgU2MIL/xAmKfABEmqfi8R+opU/AjKWkYvHAN6hz g3rw== MIME-Version: 1.0 Received: by 10.52.95.237 with SMTP id dn13mr2780209vdb.83.1349366306305; Thu, 04 Oct 2012 08:58:26 -0700 (PDT) Received: by 10.58.151.138 with HTTP; Thu, 4 Oct 2012 08:58:26 -0700 (PDT) In-Reply-To: <506C67C7.6050106@christopherschultz.net> References: <506C67C7.6050106@christopherschultz.net> Date: Thu, 4 Oct 2012 09:58:26 -0600 Message-ID: Subject: Re: Apache + Tomcat + mod_jk ; Why wrong content type? From: Joe Hansen To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf307d04c05bf7cf04cb3dd3fb --20cf307d04c05bf7cf04cb3dd3fb Content-Type: text/plain; charset=ISO-8859-1 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 < chris@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-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --20cf307d04c05bf7cf04cb3dd3fb--