tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Weir" <>
Subject Apache 2.2.3 - Tomcat 5.5.17 - Jk config 2.1.8
Date Sun, 03 Sep 2006 21:51:23 GMT
To all,

I have two issues I need to solve.  I set up a virtual host and

1- I would like to take away port 8080 so anybody browsing couldn't see the Tomcat Admin screen...

2 - I can't see the second virtual host unless I put the directory path 
after the virual host,

"" won't take me there but "" will..

I get this error,

You don't have permission to access / on this server.

This is my httpd-vhosts.conf entry,

<VirtualHost *:80>
    DocumentRoot /usr/opt/tomcat/webapps/mysite
    ServerAlias *
    ErrorLog logs/
    CustomLog logs/ common

    JkMount /mysite ajp13
    JkMount /mysite/* ajp13

This is the ertry in server.xml

      <Host name="" appBase="webapps"
	    unpackWARs="true" autoDeploy="true"
	    xmlValidation="false" xmlNamespaceAware="false">

I also tried,
      <Host name="" appBase="webapps/mysite"

This is the entry oin server.xml that auto generates jk_mod.conf,

    <Engine name="Catalina" defaultHost="localhost">
    <Listener className="org.apache.jk.config.ApacheConfig"
	      configHome = "/usr/opt/tomcat/conf"
	      jkConfig = "/usr/opt/tomcat/conf/auto/mod_jk.conf"
	      workersConfig = "/usr/opt/tomcat/conf/jk/"
	      modJk = "/usr/local/apache2/modules/"
	      jkLog = "/usr/opt/tomcat/conf/auto/mod_jk.log"

This is the mod_jk.conf that gets generated,

########## Auto generated on Sun Sep 03 17:41:05 EDT 2006##########

<IfModule !mod_jk.c>
  LoadModule jk_module "/usr/local/apache2/modules/"

JkWorkersFile "/usr/opt/tomcat/conf/jk/"
JkLogFile "/usr/opt/tomcat/conf/auto/mod_jk.log"

JkLogLevel emerg

<VirtualHost localhost>
    ServerName localhost
    JkMount /mysite ajp13
    JkMount /mysite/* ajp13

I appreciate any feedback,


Windows Live Spaces is here! Itís easy to create your own personal Web site.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message