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 BD767D144 for ; Wed, 3 Oct 2012 05:48:13 +0000 (UTC) Received: (qmail 49423 invoked by uid 500); 3 Oct 2012 05:48:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 49132 invoked by uid 500); 3 Oct 2012 05:48:07 -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 49070 invoked by uid 99); 3 Oct 2012 05:48:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 05:48:05 +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; Wed, 03 Oct 2012 05:47:57 +0000 Received: by vcbfl15 with SMTP id fl15so9945803vcb.18 for ; Tue, 02 Oct 2012 22:47:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rSoZM4aW6PSMahbWkrkDB4zvMW6HgbArEkQGCddQD0Q=; b=G8SENuejybGOjdCjdSuKRQZupUdxlaTzi5Ude754OmprmVsoTkACX8roUpZP26itJJ IfSlshQ0PNfbAfrwYa6vLeq/mGrE2wofH9Z8GK625FmI6m40YzvEEIyrlquO8xwLDJXe ZbwUEBTwoRsp4jQDzJZckjBmB1bqTwlPf3HGMJ9MQfbDlSSo7++Fs8AUCsmz6oAvuJXW FlH0N4ZDV2zuAdZ1VnysRXfWpTMeHMADW2qKsHgUSH6yEoNWukFyAxXFZPoUsMyA9dNe 2BtgnLZ+nKLtRJBzCiZ3kVLNWCz/G3tA47zl47sjUFKblALPsOGUPrKvzkSP7zqCot7d 3RxQ== MIME-Version: 1.0 Received: by 10.52.26.228 with SMTP id o4mr431262vdg.72.1349243256882; Tue, 02 Oct 2012 22:47:36 -0700 (PDT) Received: by 10.58.151.138 with HTTP; Tue, 2 Oct 2012 22:47:36 -0700 (PDT) Date: Tue, 2 Oct 2012 23:47:36 -0600 Message-ID: Subject: Apache + Tomcat + mod_jk ; Why wrong content type? From: Joe Hansen To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf3079bdae0ac67604cb212dae --20cf3079bdae0ac67604cb212dae Content-Type: text/plain; charset=ISO-8859-1 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 --20cf3079bdae0ac67604cb212dae--