httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Allen" <>
Subject [users@httpd] Connecting Apache and Tomcat
Date Fri, 05 Nov 2004 18:48:38 GMT
I am (have been for some time) having a very difficult time doing something that
should be easy and straightforward- connecting Apache to Tomcat and having
Apache serve static contact and Tomcat serve dynamic content.  My directory
structures are rather convoluted, but came mainly from the installation.  I'm
certainly willing to simplify them if it would help, but I can't figure out why
it doesn't work.  Every time I try http://localhost/examples/ I get the
directory listing (under Apache, not under Tomcat), but when clicking on the
entries, ultimately get a 404-File not Found error, when Apache should be (I
think) looking at the directory and passing it off to Tomcat.

Webapps directory structure: /usr/share/tomcat4/server/webapps/...
Apache directory structure:
------------------------------------------------------------------- snippet:

info=Tomcat HTML based administration web application.

info=A scriptable management web application for the Tomcat Web Server. debug=5
context="manager" worker=ajp13:localhost:8009

info=tomcat Examples.
server.xml snippet:

      <Host name="localhost" debug="5" appBase="webapps" 
            unpackWARs="true" autoDeploy="true">
CATALINA_BASE directory structure:
Contents of, for example, admin.xml:

    Context configuration file for the Tomcat Administration Web App

<Context path="/admin" docBase="/usr/share/tomcat4/server/webapps/admin"
         debug="5" privileged="true" allowLinking="true">

  <!-- make symlinks work in Tomcat 4.1 -->
  <Resources className="org.apache.naming.resources.FileDirContext"
             allowLinking="true" />

  <!-- Uncomment this Valve to limit access to the Admin app to localhost
       for obvious security reasons. Allow may be a comma-separated list of
       hosts (or even regular expressions).
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"

  <Logger className="org.apache.catalina.logger.FileLogger"
          prefix="localhost_admin_" suffix=".log" timestamp="true"/>


If someone could *possibly* give me a hand here, I sure would appreciate it.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message