To follow up on this, it turned out to be some sort of port issue.

If I turn the firewall off on the Linux server, the external URL
responds fine (like the localhost URL). When I lock it back down and
leave only the following ports open:
80
443 (https)
8080
8082
8443
8009
8005
22 (ssh, should have nothing to do with this, but it's an open port on
this server)

the redirect from the initial login (http://my.server.com:8080/foo) to
the service on 8443 (https://my.server.com:8443/foo/main.jsp) does not
happen...

I cannot find documentation on what port I'm missing in this list (and I
expect there are a couple that I don't need either). I would expect this
to be a pretty common issue, and the lack of hits on google is troubling
me...

Any thoughts?

Thanks,
Greg

On Tue, 2006-09-05 at 09:21 -0600, Greg Campbell wrote:

> Hi,
> 
> I'm new to Tomcat and cannot find the answer to the following question
> (if I'm missing something, I'd kindly appreciate a pointer into the
> documentation):
> 
> I've got Tomcat set up with a server.xml file that (in part) looks
> like:
>     <Engine 
>       name="Catalina" 
>       defaultHost="my.server.com">
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
>       <Host 
> appBase="webapps"
> name="my.server.com" 
>        unpackWARs="true" 
> autoDeploy="true"
>        xmlValidation="false" 
> xmlNamespaceAware="false">
>       </Host>
>     </Engine>
> 
> I've got a directory (and associated web stuffing) at webapps/foo.
> 
> >From the localhost, when I hit the URL http://localhost:8080/foo , it
> works perfectly - I'm redirected to port 8443 properly, and the
> application comes up. I'm able to navigate into the app just fine.
> 
> But, when I hit it externally (from outside of my.server.com) with
> http://my.server.com:8080/foo the browser eventually times out...
> 
> Any pointers as to what I've got set wrong would be appreciated.
> 
> Other particulars: 
> - Tomcat 5.5.17
> - "my.server.com" is listed under my dns settings, and responds
> correctly (to ping's, ssh, etc) from external sources
> - ports 80, 8080 & 8443 are all open on the server
> - apache is not running on the server (a standalone Tomcat
> implementation)
> - Linux implementation
> - this happens both with me starting Tomcat with "catalina.sh run" and
> "startup.sh" (running from either a user account or root behaves the
> same)
> 
> Thanks for any help.
> 
> Cheers,
> Greg
> 

Reply via email to