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 Thu, 05 Dec 2013 10:37:28 GMT
Hi Andre,

I apologize for not following the mailing rule. Actually this is the first 
time that I am taking the help of such a forum.

Before I begin asking you anything I want to thank you for such a detailed 

To begin with, answer to your question - "why do you want to serve these 
files from Apache httpd, instead of letting Tomcat do it?" I am planning 
to use Apache httpd as a Load Balancer. And to improve the performance of 
my application, I want to serve the static content from apache itself.

Now, as per your suggestion I have modified the entries of httpd.conf file 
to this.

ProxyPassMatch ^/.*\.(gif|jpg|css|png)$! http://localhost:8080/
ProxyPassMatch ^/(.*\.jsp)$ http://localhost:8080/$1
ProxyPassReverse / http://localhost:8080/

ProxyPassMatch ^/.*\.(gif|jpg|css|png)$! http://localhost:8080/ - By using 
this setting I am able to serve static files from apache. I have kept my 
files under DocumentRoot as per your suggestion.

ProxyPassMatch ^/(.*\.jsp)$ http://localhost:8080/$1 - If I am not using 
this. I am getting a page not found error for my page Login.jsp present 
inside Tomcat/Webapps/MyApplication. When I am using this setting I am 
able to reach to the page Login.jsp.

Now, the probelm is, the Login.jsp actually sends the request to a servlet 
to complete the login functionality. I am not able to reach to that 
servlet using the above settings. The URL  is - 

What should I add in the httpd.conf to achieve this?

Thanks and Best Regards,

Tapajyoti Roy Barman

Ph:- +919433040094
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

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