On Dec 4, 2013, at 8:29 AM, Tapajyoti Roybarman <tapajyoti.roybar...@tcs.com> wrote:
> 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 > Webapps. > > Now, if I want to just do the opposite (from what you suggested) and add > exceptions for files like jpg, png, css etc in my httpd.conf file, how do > I do that? See ProxyPass directive here. It tells how to exclude resources. Make sure you read the part about properly ordering your ProxyPass statements too. https://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass > Where in my Apache2.2 folder structure do I keep the static > contents? In your htdocs (i.e. DocumentRoot) folder. Exactly where under that folder just depends on where your application expects it. If your app stores static resources under a "static" folder (i.e. /static/images/...) then you'd just create that folder structure under the htdocs folder. Dan > > 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.roybar...@tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Consulting > ____________________________________________ > > > > From: > André Warnier <a...@ice-sa.com> > To: > Tomcat Users List <users@tomcat.apache.org> > Date: > 12/04/2013 06:45 PM > Subject: > Re: Need Information regarding Apache Webserver static file configuration > > > > Tapajyoti Roybarman wrote: >> Hi, >> >> Could you please let me know that how can I serve static content like >> image files, css files through Apache Webserver instead of Tomcat? > > 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_proxy_http module. > > Right. So *unless you specify otherwise*, all content will be served by > Apache httpd. > It is only *when you explicitly specify otherwise* that Apache httpd will > forward some > requests to Tomcat. > > Sugestion : from your Apache httpd configuration, > 1) start by removing anything that refers to mod_proxy_http. > Once you have done that, *everything* will be served by Apache httpd > (image files, css > files, html pages, everything). > 2) once you have succeeded in the above, /then/ re-introduce your > mod_proxy_httpd-related > statements, to *selectively* forward some URLs to Tomcat. > Et voilà ! > > It reminds me a bit of the story about a sculptor, who was aked how he > sculpted a horse > from a big block of stone. He answered that it was very easy : you just > remove from the > 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 > that always > causes delayed responses. > > >> Apache Webserber Version - 2.2.25 >> >> Apache Tomcat Version - 7.0.27 >> >> OS - Windows 7 >> >> Thanks in advance, >> >> Best Regards, >> >> Tapajyoti Roy Barman >> Ph:- +919433040094 >> Mailto: tapajyoti.roybar...@tcs.com >> =====-----=====-----===== >> Notice: The information contained in this e-mail >> message and/or attachments to it may contain >> confidential or privileged information. If you are >> not the intended recipient, any dissemination, use, >> review, distribution, printing or copying of the >> information contained in this e-mail message >> and/or attachments to it are strictly prohibited. If >> you have received this communication in error, >> please notify us by reply e-mail or telephone and >> immediately and permanently delete the message >> and any attachments. Thank you >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org