tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tapajyoti Roybarman <>
Subject Re: Need Information regarding Apache Webserver static file configuration
Date Wed, 04 Dec 2013 13:29:38 GMT
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 

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? Where in my Apache2.2 folder structure do I keep the static 

Hope I was able to make my question clear.

Eagerly waiting for your response.

Thanks and Best Regards,

Tapajyoti Roy Barman
Ph:- +919433040094
Experience certainty.   IT Services
                        Business Solutions

André Warnier <>
Tomcat Users List <>
12/04/2013 06:45 PM
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.

> let me know about all the required configurations in detail.

That infomation is available on-line :

  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 
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.

> 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:
> =====-----=====-----=====
> 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:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message