tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jakarta" <jaka...@trollingers.com>
Subject Problems with JK2 / Virtual hosts / tomcat 4
Date Thu, 30 Oct 2003 12:52:21 GMT
I tried to follow the how-to and think I did everything right, but one
of my hosts still will not serve up jsp pages.  Some pages it loads as
if they where just html and some it tries to download.  Here is what I
think are the relevent portions of my httpd.conf, workers2.properties
and server.xml

I am running apache 1.3.x tomcat 4.1.x and jk2 on linux

Everything works except for www.ccc.com  it is the one that will not
server up jsp pages 

Thanks,

John

httpd.conf

<virtualhost www.ccc.com ccc.com>
	servername ccc.com 
	documentroot "/var/www/html"
	<Directory "/var/www/html">
		Options -Indexes FollowSymLinks Includes
	</Directory>
</virtualhost>


<VirtualHost www.bbb.com bbb.com>
	servername www.bbb.com
	documentroot "/var/www/bbb"
	<Directory "/var/www/bbb">
		options -Indexes FollowSymLinks Includes
		allowoverride All
	</Directory>
</virtualhost>

<virtualhost www.aaa.com aaa.com>
	servername aaa.com
	<directory /var/www/aaa>
		options -Indexes FollowSymLinks Includes
	</directory>
</virtualhost>

<virtualhost intranet.ddd.com>
	servername intranet.ddd.com
	documentroot "/var/www/intranet"
	<directory /var/www/intranet>
		options -Indexes FollowSymLinks Includes
	</directory>
</virtualhost>


workers2.properteis

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

[uri:localhost/*.jsp]
worker=ajp13:localhost:8009

[uri:www.ccc.com/*]
worker=ajp13:localhost:8009

[uri:intranet.ddd.com/*]
worker=ajp13:localhost:8009


server.xml

<Engine name="apache" defaultHost="www.shaolincenter.com" debug="0">

	<!-- Global logger unless overridden at lower levels -->
	<Logger className="org.apache.catalina.logger.FileLogger"
					prefix="catalina_log."
suffix=".txt"
					timestamp="true"/>

	<!-- Define the default virtual host -->
	<Host name="www.ccc.com" debug="0" appBase="/var/www/html"
unpackWARs="false" autoDeploy="false">
		<Context path="" docBase="" debug="0">
			<Logger
className="org.apache.catalina.logger.FileLogger"
	
prefix="shaolin_log." suffix=".txt"
				timestamp="true"/>
		</Context>
	</Host>

	<Host name="intranet.ddd.com" debug="0"
appBase="/var/www/intranet"
	 		  unpackWARs="false" autoDeploy="false">
		<Context path="" docBase="" debug="0">			
			<Logger
className="org.apache.catalina.logger.FileLogger"
	
prefix="intranet." suffix=".txt"
				timestamp="true"/>
		</Context>
	</Host>
</Engine>


---------------------------------------------------------------------
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