tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth, Brice" <br...@fiskars.com>
Subject Re: Help with configuration
Date Thu, 22 Jul 2004 14:11:49 GMT
Phillip Blancher wrote:

> I am having a problem with making TomCat work with an existing 
> installation of Apache 1.3.26.
>
> I installed TomCat 4 with the self extraction.exe and followed the 
> instructions on the JohnTurner.com website to install it.
>
> I then installed the Mod_jk connector, and configured the httpd.conf 
> in apache as per the instructions. The problem is I cannot go anywhere 
> on port 8080 or anything with tomcat at all when trying to access via 
> web browser.
>
> I created a JSP sample and placed in the webspace, and all I am 
> prompted for is to open or save the file. It does not parse it.
>
> The Server is an Windows 2000 box. I have 5 virtualhosts setup for web 
> space (web1-5) on 5 IP's, plus the ip for the machine and local host.
>
> Below is the sections in httpd.conf which are for tomcat.
>
> Listen x.x.x.33:80
> Listen x.x.x.1:80
> Listen x.x.x.2:80
> Listen x.x.x.3:80
> Listen x.x.x.4:80
> Listen x.x.x.5:80
> Listen localhost:80
> Listen localhost:8080
> Listen localhost:8009
> Listen localhost:8008
> Listen 80
> Listen 8080
> Listen 8008
> Listen 8009
>
>   LoadModule jk_module D:/IBserver/apache/modules/mod_jk.dll
> AddModule mod_jk.c
> DocumentRoot "D:/IBserver/www
>
>
> <VirtualHost localhost>
>    ServerAdmin pblancher@x
>    DocumentRoot D:/IBserver/www
>    ServerName localhost
>    ErrorLog logs/localhost.com-error_log
>    CustomLog logs/localhost.com-access_log common
> </VirtualHost>
>
> <VirtualHost xxxxxxxxx.33>
>    ServerAdmin pblancher@x
>    DocumentRoot D:/IBserver/www
>    ServerName x.x.x.33
>    ErrorLog logs/x.33.com-error_log
>    CustomLog logs/x.33.com-access_log common
> </VirtualHost>
>
> <VirtualHost x.x.x.1>
>    ServerAdmin pblancher@x
>    DocumentRoot D:/IBserver/www/web1
>    ServerName x.x.x.1
>    ErrorLog logs/x.1.com-error_log
>    CustomLog logs/x..1.com-access_log common
> </VirtualHost>
>
>
> Include d:/IBserver/tomcat4/conf/auto/mod_jk.conf
>
>
> --- mod_jk.conf ---
>
>
> <VirtualHost localhost>
>    ServerName localhost
>
>    #################### localhost:/admin ####################
>
>    # Static files
>    Alias /admin "D:/IBserver/tomcat4/webapps/../server/webapps/admin"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/admin">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/admin/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/admin/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>
> <Directory "/web_app/tomcat/webapps">
>    Options Indexes FollowSymLinks
> </Directory>
> JkMount /* ajp13
> <Location "/WEB-INF/">
>    AllowOverride None
>    deny from all
> </Location>
> JkMount /*.jsp ajp13
> JkMount /*.do ajp13
>
>
>    #################### localhost:/webdav ####################
>
>    # Static files
>    Alias /webdav "D:/IBserver/tomcat4/webapps/webdav"
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.jsp index.html index.htm
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/webdav/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/webdav/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /webdav/*.jsp  ajp13
>
>    #################### localhost:/examples ####################
>
>    # Static files
>    Alias /examples "D:/IBserver/tomcat4/webapps/examples"
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/examples/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/examples/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/examples/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /examples/jsp/security/protected/j_security_check  ajp13
>    JkMount /examples/snoop  ajp13
>    JkMount /examples/servlet/*  ajp13
>    JkMount /examples/CompressionTest  ajp13
>    JkMount /examples/*.jsp  ajp13
>    JkMount /examples/servletToJsp  ajp13
>    JkMount /examples/SendMailServlet  ajp13
>
>    #################### localhost:/tomcat-docs ####################
>
>    # Static files
>    Alias /tomcat-docs "D:/IBserver/tomcat4/webapps/tomcat-docs"
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/tomcat-docs/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/tomcat-docs/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /tomcat-docs/*.jsp  ajp13
>
>    #################### localhost:/manager ####################
>
>    # Static files
>    Alias /manager "D:/IBserver/tomcat4/webapps/../server/webapps/manager"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/manager">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/manager/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/manager/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /manager/list  ajp13
>    JkMount /manager/deploy  ajp13
>    JkMount /manager/html/*  ajp13
>    JkMount /manager/resources  ajp13
>    JkMount /manager/start  ajp13
>    JkMount /manager/stop  ajp13
>    JkMount /manager/install  ajp13
>    JkMount /manager/*.jsp  ajp13
>    JkMount /manager/remove  ajp13
>    JkMount /manager/roles  ajp13
>    JkMount /manager/sessions  ajp13
>    JkMount /manager/serverinfo  ajp13
>    JkMount /manager/reload  ajp13
>    JkMount /manager/undeploy  ajp13
> </VirtualHost>
>
> <VirtualHost localhost>
>    ServerName localhost
>
>    #################### localhost:/admin ####################
>
>    # Static files
>    Alias /admin "D:/IBserver/tomcat4/webapps/../server/webapps/admin"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/admin">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/admin/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/admin/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /admin/j_security_check  ajp13
>    JkMount /admin/*.do  ajp13
>    JkMount /admin/*.jsp  ajp13
>
>    #################### localhost:/webdav ####################
>
>    # Static files
>    Alias /webdav "D:/IBserver/tomcat4/webapps/webdav"
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.jsp index.html index.htm
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/webdav/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/webdav/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /webdav/*.jsp  ajp13
>
>    #################### localhost:/examples ####################
>
>    # Static files
>    Alias /examples "D:/IBserver/tomcat4/webapps/examples"
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/examples/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/examples/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/examples/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /examples/jsp/security/protected/j_security_check  ajp13
>    JkMount /examples/snoop  ajp13
>    JkMount /examples/servlet/*  ajp13
>    JkMount /examples/CompressionTest  ajp13
>    JkMount /examples/*.jsp  ajp13
>    JkMount /examples/servletToJsp  ajp13
>    JkMount /examples/SendMailServlet  ajp13
>
>    #################### localhost:/tomcat-docs ####################
>
>    # Static files
>    Alias /tomcat-docs "D:/IBserver/tomcat4/webapps/tomcat-docs"
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/tomcat-docs/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/tomcat-docs/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /tomcat-docs/*.jsp  ajp13
>
>    #################### localhost:/manager ####################
>
>    # Static files
>    Alias /manager "D:/IBserver/tomcat4/webapps/../server/webapps/manager"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/manager">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/manager/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/manager/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /manager/list  ajp13
>    JkMount /manager/deploy  ajp13
>    JkMount /manager/html/*  ajp13
>    JkMount /manager/resources  ajp13
>    JkMount /manager/start  ajp13
>    JkMount /manager/stop  ajp13
>    JkMount /manager/install  ajp13
>    JkMount /manager/*.jsp  ajp13
>    JkMount /manager/remove  ajp13
>    JkMount /manager/roles  ajp13
>    JkMount /manager/sessions  ajp13
>    JkMount /manager/serverinfo  ajp13
>    JkMount /manager/reload  ajp13
>    JkMount /manager/undeploy  ajp13
> </VirtualHost>
>
> <VirtualHost localhost>
>    ServerName localhost
>
>    #################### localhost:/admin ####################
>
>    # Static files
>    Alias /admin "D:/IBserver/tomcat4/webapps/../server/webapps/admin"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/admin">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/admin/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/admin/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/admin/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /admin/j_security_check  ajp13
>    JkMount /admin/*.do  ajp13
>    JkMount /admin/*.jsp  ajp13
>
>    #################### localhost:/webdav ####################
>
>    # Static files
>    Alias /webdav "D:/IBserver/tomcat4/webapps/webdav"
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.jsp index.html index.htm
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/webdav/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/webdav/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/webdav/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /webdav/*.jsp  ajp13
>
>    #################### localhost:/examples ####################
>
>    # Static files
>    Alias /examples "D:/IBserver/tomcat4/webapps/examples"
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/examples/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/examples/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/examples/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/examples/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /examples/jsp/security/protected/j_security_check  ajp13
>    JkMount /examples/snoop  ajp13
>    JkMount /examples/servlet/*  ajp13
>    JkMount /examples/CompressionTest  ajp13
>    JkMount /examples/*.jsp  ajp13
>    JkMount /examples/servletToJsp  ajp13
>    JkMount /examples/SendMailServlet  ajp13
>
>    #################### localhost:/tomcat-docs ####################
>
>    # Static files
>    Alias /tomcat-docs "D:/IBserver/tomcat4/webapps/tomcat-docs"
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/tomcat-docs/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/tomcat-docs/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory "D:/IBserver/tomcat4/webapps/tomcat-docs/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /tomcat-docs/*.jsp  ajp13
>
>    #################### localhost:/manager ####################
>
>    # Static files
>    Alias /manager "D:/IBserver/tomcat4/webapps/../server/webapps/manager"
>
>    <Directory "D:/IBserver/tomcat4/webapps/../server/webapps/manager">
>        Options Indexes FollowSymLinks
>        DirectoryIndex index.html index.htm index.jsp
>    </Directory>
>
>
>    # Deny direct access to WEB-INF and META-INF
>    #
>    <Location "/manager/WEB-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>
>    <Location "/manager/META-INF/*">
>        AllowOverride None
>        deny from all
>    </Location>
>    #
>    # Use Directory too. On Windows, Location doesn't work unless case 
> matches
>    #
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/WEB-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    <Directory 
> "D:/IBserver/tomcat4/webapps/../server/webapps/manager/META-INF/">
>        AllowOverride None
>        deny from all
>    </Directory>
>
>    JkMount /manager/list  ajp13
>    JkMount /manager/deploy  ajp13
>    JkMount /manager/html/*  ajp13
>    JkMount /manager/resources  ajp13
>    JkMount /manager/start  ajp13
>    JkMount /manager/stop  ajp13
>    JkMount /manager/install  ajp13
>    JkMount /manager/*.jsp  ajp13
>    JkMount /manager/remove  ajp13
>    JkMount /manager/roles  ajp13
>    JkMount /manager/sessions  ajp13
>    JkMount /manager/serverinfo  ajp13
>    JkMount /manager/reload  ajp13
>    JkMount /manager/undeploy  ajp13
> </VirtualHost>
>
> ________________________

If you're using the auto-generated mod_jk.conf, you should not define 
your virtualhost containers in the main httpd.conf. That's one problem. 
The next is that by default, Tomcat tries bind ports at 8009 & 8080 ... 
8080 is the HTTP connector, 8009 is the JK connector. If you bind these 
with Apache (your Listen directives) - then Tomcat cannot bind them, 
which means the JK connector between Apache and Tomcat cannot communicate.

I'd highly suggest getting your configuration working with only Tomcat 
before trying to integrate Apache into the mix. Verify that you can 
access all the things you need to access through Tomcat's HTTP connection.

Respectfully,
Brice Ruth

-- 
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message