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 D99441002F for ; Wed, 4 Dec 2013 13:31:21 +0000 (UTC) Received: (qmail 76973 invoked by uid 500); 4 Dec 2013 13:30:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76511 invoked by uid 500); 4 Dec 2013 13:30: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 76264 invoked by uid 99); 4 Dec 2013 13:30:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 13:30:06 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=04369fef5=tapajyoti.roybarman@tcs.com designates 121.241.215.10 as permitted sender) Received: from [121.241.215.10] (HELO inkolg01.tcs.com) (121.241.215.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 13:30:02 +0000 X-IronPort-AV: E=Sophos;i="4.93,824,1378837800"; d="scan'208";a="478684411" X-DISCLAIMER: FALSE Received: from INKOLSALDLPMTA2.india.tcs.com (unknown [127.0.0.1]) by INKOLSALDLPMTA2.india.tcs.com (Service) with ESMTP id 35196119411; Wed, 4 Dec 2013 18:59:39 +0530 (IST) Received: from InKolM01.tcs.com (unknown [172.18.18.103]) by INKOLSALDLPMTA2.india.tcs.com (Service) with ESMTP id 06971119402; Wed, 4 Dec 2013 18:59:39 +0530 (IST) In-Reply-To: <529F2AD3.5030203@ice-sa.com> References: <1386146601.45844.ezmlm@tomcat.apache.org> <529F2AD3.5030203@ice-sa.com> To: aw@ice-sa.com, users@tomcat.apache.org MIME-Version: 1.0 Subject: Re: Need Information regarding Apache Webserver static file configuration X-KeepSent: BDA7DFE2:96F41085-65257C37:00492A2E; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.2 August 10, 2010 Message-ID: From: Tapajyoti Roybarman Date: Wed, 4 Dec 2013 18:59:38 +0530 X-MIMETrack: Serialize by Router on InKolM01/TCS(Release 9.0|March 08, 2013) at 12/04/2013 18:59:38, Serialize complete at 12/04/2013 18:59:38 Content-Type: multipart/alternative; boundary="=_alternative 004A1FC465257C37_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 004A1FC465257C37_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi Andre, Thanks a lot for the quick response. In my httpd.conf file I have added the below settings. ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ This is to connect Apache Webserver and Tomcat. In future I would add more = clusters and then modify the httpd.conf file accordingly. Now because of this setting everything is being redirected to Tomcat. Even = the static files are displayed from my application stack inside Tomcat=20 Webapps. Now, if I want to just do the opposite (from what you suggested) and add=20 exceptions for files like jpg, png, css etc in my httpd.conf file, how do=20 I do that? Where in my Apache2.2 folder structure do I keep the static=20 contents? Hope I was able to make my question clear. Eagerly waiting for your response. Thanks and Best Regards, Tapajyoti Roy Barman Ph:- +919433040094 Mailto: tapajyoti.roybarman@tcs.com =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Experience certainty. IT Services Business Solutions Consulting =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F From: Andr=E9 Warnier To: Tomcat Users List Date: 12/04/2013 06:45 PM Subject: Re: Need Information regarding Apache Webserver static file configuration Tapajyoti Roybarman wrote: > Hi, >=20 > Could you please let me know that how can I serve static content like=20 > image files, css files through Apache Webserver instead of Tomcat?=20 That is the normal thing that an Apache httpd webserver does. Please > let me know about all the required configurations in detail. That infomation is available on-line : http://httpd.apache.org/docs/2.2/ I am > connecting Apache webserver and Tomcat using mod=5Fproxy=5Fhttp module. Right. So *unless you specify otherwise*, all content will be served by=20 Apache httpd. It is only *when you explicitly specify otherwise* that Apache httpd will=20 forward some=20 requests to Tomcat. Sugestion : from your Apache httpd configuration, 1) start by removing anything that refers to mod=5Fproxy=5Fhttp. Once you have done that, *everything* will be served by Apache httpd=20 (image files, css=20 files, html pages, everything). 2) once you have succeeded in the above, /then/ re-introduce your=20 mod=5Fproxy=5Fhttpd-related=20 statements, to *selectively* forward some URLs to Tomcat. Et voil=E0 ! It reminds me a bit of the story about a sculptor, who was aked how he=20 sculpted a horse=20 from a big block of stone. He answered that it was very easy : you just=20 remove from the=20 stone everything that is not a horse. Also, > please find below some information that you may require. > That was good of you to supply this information. Many people do not, and=20 that always=20 causes delayed responses. > Apache Webserber Version - 2.2.25 >=20 > Apache Tomcat Version - 7.0.27 >=20 > OS - Windows 7 >=20 > Thanks in advance, >=20 > Best Regards, >=20 > Tapajyoti Roy Barman > Ph:- +919433040094 > Mailto: tapajyoti.roybarman@tcs.com > =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D > Notice: The information contained in this e-mail > message and/or attachments to it may contain=20 > confidential or privileged information. If you are=20 > not the intended recipient, any dissemination, use,=20 > review, distribution, printing or copying of the=20 > information contained in this e-mail message=20 > and/or attachments to it are strictly prohibited. If=20 > you have received this communication in error,=20 > please notify us by reply e-mail or telephone and=20 > immediately and permanently delete the message=20 > and any attachments. Thank you >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --=_alternative 004A1FC465257C37_=--