> -----Original Message----- > From: Paul D. Hester [mailto:[EMAIL PROTECTED] > Sent: Friday, October 01, 2004 10:20 AM > To: 'Tomcat Users List' > Subject: RE: JK2 2.0.4 > > Thanks Charlie for you help. I tried what you suggested and now > http://orbt.at.ufl.edu is accessing the ORB webapp properly. However, > http://edist.at.ufl.edu renders an 'Internal Server Error' and I now > have an HTTP1.1 500 error in my apache log file. My httpd.conf and > workers2.properties file are enclosed. What looks wrong? > > ****workers2.properties**** > [shm:] > file=/usr/local/apache-2.0.50/logs/jk2.log > size=1000000 > debug=1 > > # Define the communication channel > [channel.socket:localhost:8409] > port=8409 > host=orbt.at.ufl.edu > type=ajp13 > > > [channel.socket:localhost:8209] > port=8209 > host=edist.at.ufl.edu > type=ajp13 > > # define the worker > [ajp13:localhost:8409] > channel=channel.socket:localhost:8409 > > [ajp13:localhost:8209] > channel=channel.socket:localhost:8209 > > > ****httpd.conf**** > > ServerName mmdbt.at.ufl.edu > Listen 80 > > AddHandler cgi-script .cgi > > <Directory "/home/*/public_html"> > Options FollowSymLinks ExecCGI Includes Indexes > AllowOverride AuthConfig Fileinfo Limit Indexes > </Directory> > > LoadModule jk2_module modules/mod_jk2.so >
if you want to use name-based virtual hosts on the same ip, then add: NameVirtualHost 128.227.8.67:80 > <VirtualHost *> > ServerName mmdbt.at.ufl.edu > DocumentRoot /home/www/public_html > > Redirect permanent /tomcat http://mmdbt.at.ufl.edu/tomcat/ > Redirect permanent /tomcat/tomcat-docs > http://mmdbt.at.ufl.edu/tomcat/tomcat-docs/ > </VirtualHost> > > <VirtualHost 128.227.8.67:8209> change to <VirtualHost 128.227.8.67:80> This defines how apache is matching this ip/port/name, since your "listen" directive lists port 80, you need to do so here also. > ServerName edist.at.ufl.edu > <Location /*> > JkUriSet worker apj13:localhost:8209 > </Location> > </VirtualHost> > > <VirtualHost 128.227.8.67:8409> Same here - use port 80 > ServerName orbt.at.ufl.edu > <Location /*> > JkUriSet worker ajp13:localhost:8409 > </Location> > </VirtualHost> > Charlie
