tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <>
Subject How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat?
Date Fri, 23 Dec 2005 20:51:58 GMT
Hello Everyone,

I have successfully configured Apache to forward requests to my Tomcat
instance. But it does so...only for requests whose IP resolves to

If I try to access a page through apache server (that's actually on tomcat)
with the outside-facing-ip of my computer it fails.

For example:
1) URL: ""            FAILS with a
404 (apache does not forward properly)

2) URL: ""           SUCCEEDS
(tomcat seems to be ok when it gets the request directly, so it has to be a
forwarding failure by apache in the previous case)

3) URL: ""      SUCCEEDS (I have "" mapped to "" in my windows' hosts file)

4) URL: "http://localhost:666/blah/serveMe.html"                SUCCEEDS

I think this happens because the 1st request (the one with the outside
facing ip) is not forwarded to Tomcat by apache.
a) The apache error logs show that Apache is trying to look for the page in
the wrong place
b) The access logs ofcourse show a 404 because it can't find the page to

Now, I have read a few threads and been on a few forums and apparently my file is supposed to be as simple as this:

I also tried putting my outside-facing-ip and localhost as values for "" but it didn't seem to make any difference at all.

In that case I must ask all of you:
Question 1: How do I go about configuring apache to forward the
outside-facing-ip requests to Tomcat? If it is not done in where is it handled?
Question 2: Or am I wrong and it is actually handled by
Even then, how?

Thanks in advance to all those who answer and all those who take the time to
read this.

- Pulkit

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