You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jford <jf...@katzenjammer.us> on 2003/12/16 17:55:09 UTC
localhost works, www does not; why?
This may have been asked many times before, but I can't find it, in part
because I don't quite know what to search for and in part because it may
not even be a Tomcat-specific issue.
But it occurs because I'm trying to make Tomcat work, so here goes...
(if I'm wrong and the question needs to be redirected, I'm sure someone
will politely point it out to me :)
I have Apache 1.3.27 and Tomcat 4.1.27 running under Red Hat 9.0 Linux.
The two webservers are connected by mod_jk.
When I go to http://localhost from the browser on the Linux box, I get
Apache's index page.
http://localhost:8080 gets me Tomcat's index page.
And http://localhost/examples gets me the Tomcat examples directory
listing with an Apache port 80 slug at the bottom. When I drill down to
the examples themselves, they work.
So I know the Apache->mod_jK->Tomcat connection is correctly configured.
But when I try it from the live web, using my domain name, I cannot get
to the Tomcat pages.
http://www.katzenjammer.us gets me my website.
http://www.katzenjammer.us:8080 gets me Tomcat's index page, and, again,
I am able to drill down into the examples themselves and they work.
But http://www.katzenjammer.us/examples and
http://www.katzenjammer.us/examples/jsp/index.jsp get me 404 page not
found errors.
My webserver sits behind a Netgear firewall router, which has been
configured to allow ports 80, 8080, and 8009 to get through to the
webserver.
Can somebody tell me what I"m doing wrong?
Thanks.
Jerry
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: localhost works, www does not; why?
Posted by Jerry Ford <jf...@katzenjammer.us>.
Thanks. Problem has been solved.
In httpd.conf, the Tomcat configs were enclosed in a virtual host
block. When I removed the <VirtualHost > ... </VirtualHost> tags, the
problem went away and it now works correctly.
BTW, I also observed the changing URL; that, too, has gone away.
Jerry
Adam Hardy wrote:
> On 12/16/2003 05:55 PM jford wrote:
>
>> This may have been asked many times before, but I can't find it, in
>> part because I don't quite know what to search for and in part
>> because it may not even be a Tomcat-specific issue.
>> But it occurs because I'm trying to make Tomcat work, so here goes...
>> (if I'm wrong and the question needs to be redirected, I'm sure
>> someone will politely point it out to me :)
>>
>> I have Apache 1.3.27 and Tomcat 4.1.27 running under Red Hat 9.0
>> Linux. The two webservers are connected by mod_jk.
>> When I go to http://localhost from the browser on the Linux box, I
>> get Apache's index page.
>>
>> http://localhost:8080 gets me Tomcat's index page.
>> And http://localhost/examples gets me the Tomcat examples directory
>> listing with an Apache port 80 slug at the bottom. When I drill down
>> to the examples themselves, they work.
>>
>> So I know the Apache->mod_jK->Tomcat connection is correctly configured.
>>
>> But when I try it from the live web, using my domain name, I cannot
>> get to the Tomcat pages.
>>
>> http://www.katzenjammer.us gets me my website.
>> http://www.katzenjammer.us:8080 gets me Tomcat's index page, and,
>> again, I am able to drill down into the examples themselves and they
>> work.
>>
>> But http://www.katzenjammer.us/examples and
>> http://www.katzenjammer.us/examples/jsp/index.jsp get me 404 page
>> not found errors.
>>
>> My webserver sits behind a Netgear firewall router, which has been
>> configured to allow ports 80, 8080, and 8009 to get through to the
>> webserver.
>>
>> Can somebody tell me what I"m doing wrong?
>
>
> There is another thread on this subject called "url changing to
> localhost" where the poster mentioned something about Apache's
> ProxyPass setting. No idea what it is myself, but it might help :)
>
> Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: localhost works, www does not; why?
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
On 12/16/2003 05:55 PM jford wrote:
> This may have been asked many times before, but I can't find it, in part
> because I don't quite know what to search for and in part because it may
> not even be a Tomcat-specific issue.
> But it occurs because I'm trying to make Tomcat work, so here goes...
> (if I'm wrong and the question needs to be redirected, I'm sure someone
> will politely point it out to me :)
>
> I have Apache 1.3.27 and Tomcat 4.1.27 running under Red Hat 9.0 Linux.
> The two webservers are connected by mod_jk.
> When I go to http://localhost from the browser on the Linux box, I get
> Apache's index page.
>
> http://localhost:8080 gets me Tomcat's index page.
> And http://localhost/examples gets me the Tomcat examples directory
> listing with an Apache port 80 slug at the bottom. When I drill down to
> the examples themselves, they work.
>
> So I know the Apache->mod_jK->Tomcat connection is correctly configured.
>
> But when I try it from the live web, using my domain name, I cannot get
> to the Tomcat pages.
>
> http://www.katzenjammer.us gets me my website.
> http://www.katzenjammer.us:8080 gets me Tomcat's index page, and, again,
> I am able to drill down into the examples themselves and they work.
>
> But http://www.katzenjammer.us/examples and
> http://www.katzenjammer.us/examples/jsp/index.jsp get me 404 page not
> found errors.
>
> My webserver sits behind a Netgear firewall router, which has been
> configured to allow ports 80, 8080, and 8009 to get through to the
> webserver.
>
> Can somebody tell me what I"m doing wrong?
There is another thread on this subject called "url changing to
localhost" where the poster mentioned something about Apache's ProxyPass
setting. No idea what it is myself, but it might help :)
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org