You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jim Weir <ja...@hotmail.com> on 2006/09/03 23:51:23 UTC

Apache 2.2.3 - Tomcat 5.5.17 - Jk config 2.1.8

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 
www.mysite.com:8080 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,

"www.mysite.org" won't take me there but "www.mysite.org/mysite" will..

I get this error,

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

This is my httpd-vhosts.conf entry,

<VirtualHost *:80>
    ServerName www.mysite.org
    ServerAdmin 44@yahoo.com
    DocumentRoot /usr/opt/tomcat/webapps/mysite
    ServerAlias mysite.org *.mysite.org
    ErrorLog logs/mysite.com-error_log
    CustomLog logs/mysite.com-access_log common

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

This is the ertry in server.xml

      <Host name="www.mysite.org" appBase="webapps"
	    unpackWARs="true" autoDeploy="true"
	    xmlValidation="false" xmlNamespaceAware="false">
      </Host>

I also tried,
      <Host name="www.mysite.org" 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/workers.properties"
	      modJk = "/usr/local/apache2/modules/mod_jk.so"
	      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/mod_jk.so"
</IfModule>

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

JkLogLevel emerg

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


I appreciate any feedback,

Thanks,
Jim

_________________________________________________________________
Windows Live Spaces is here! ItÂ’s easy to create your own personal Web site. 
  http://spaces.live.com/signup.aspx


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org