tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: Local/Internet access problem
Date Mon, 17 Feb 2003 19:32:41 GMT

Apache and Tomcat have to be configured to answer to the server name and URL
that you enter into your browser.

Typically, something like http://localhost/examples is a default, so it
works.  However, something like does not.

If you're using the auto-config option of mod_jk, all you have to do is
setup a Host container in server.xml that sets up that host name.  Something

<Host name="">


    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false"
modJk="/some/path/to/apache2/modules/" /> 

    <Context path="/myApp" docBase="/some/path/to/myApp">




Then restart Tomcat, then restart Apache.  If you're not using the
auto-config option, you'll need to do the same thing as above, but minus the
Listener container, and then do something like the following in Apache's


    # Static files 
    Alias /myApp "/some/path/to/myApp"

    <Directory "/some/path/to/myApp">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp 

    <Location "/myApp/WEB-INF/*">
        AllowOverride None
        deny from all

    <Location "/myApp/META-INF/*">
        AllowOverride None
        deny from all

    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13



> -----Original Message-----
> From: Todd Paridon []
> Sent: Monday, February 17, 2003 1:39 PM
> To:
> Subject: Local/Internet access problem
> I am still feeling my way through the setup and operation of these 
> applications so please be gentle and explicit if you could.
> I have tomcat 4.1.18 running with Apache 2.0.43 and 
> mod_jk2.0.43 running 
> on Mandrake-Linux 8.2.
> I can run the supplied tomcat examples from within my local network 
> using the server's local name, but when accessing the server from the 
> internet all I get is a blank page for those same examples.  Apache 
> seems to be working OK as I can access my web pages stored 
> there with no 
> problem from the internet.  I am using to handle 
> my dynamic 
> IP .  I don't know if this is an apache, tomcat, mod_jk or 
> other setup 
> problem.  Any ideas?  I'm guessing there is something in a conf file 
> someplace, but not sure where to start looking.
> Thanks very much
> Todd Paridon
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message