Hi,
I have looked in the list archives and google for a solution to my
problem but to no avail.
I am using:
Apache/2.0.43
mod_jk2 from jakarta-tomcat-connectors-4.1.12
Tomcat 4.1.12
Solaris 9 on an Ultra -1 (sparc)
When I set up apache with no virtual hosts every thing works fine. I
connect fine to my webapp running under tomcat through jk2. However when
I use virtual hosting on apache I can no longer connect to Tomcat. The
virtual hosting setup also worked fine under mod_webapp. Any Ideas?
Thanks, Robert
-----------------------------------------------
Apache is built with
./configure --enable-layout=Apache --enable-module=most
--enable-mods-shared=most
Build jk2 Conector
cd ${conector.home}/jk/native2
sh ./buildconf.sh
cp /usr/java/include/solaris to /usr/java/include/
CPPFLAGS=-DBSD_COMP ./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-tomcat41=/usr/local/tomcat \
--with-java-home=${JAVA_HOME} \
--with-java-platform=2 \
--with-jni
make CPPFLAGS=-DBSD_COMP
------------------------------------------------
# jk2.properties
# list of needed handlers.
handler.list=apr,channelUnix,request
channelSocket.port=8009
------------------------------------------------
workers2.properties
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009] port=8009 host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009
[uri:/cal/*]
worker=ajp13:localhost:8009
# Map /jkstatus to the status worker.
# define the worker
[status:status]
# Uri mapping
[uri:/jkstatus/*]
worker=status:status
-----------------------------------------
httpd.conf
<snip>
NameVirtualHost *
1093
1094 <VirtualHost *>
1095 ServerName www.mysite.com
1096 ServerAlias mysite.com
1097 ServerAdmin [EMAIL PROTECTED]
1098 DocumentRoot /usr/local/apache2/htdocs/mysite.com
1099 ErrorLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/logs
/mysite.error_log 86400"
1100
1101 CustomLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/log
s/mysite.access_log 86400" common
1102
1103 <Directory /usr/local/apache2/htdocs/mysite.com/lrp/files>
1104 Options Indexes
1105 IndexOptions FancyIndexing SuppressHTMLPreamble
1106 IndexOrderDefault Ascending Description
1107 ReadmeName footer.html
1108 HeaderName header.html
1109 IndexIgnore header.html footer.html
1110 AddIcon /icons/world1.gif lrp
1111 AddType application/octet-stream lrp
1112 Order Deny,Allow
1113 Allow from all
1114 </Directory>
1115 <Directory /usr/local/apache2/htdocs/mysite.com/morse>
1116 AuthType Basic
1117 AuthName "By Invitation Only"
1118 AuthUserFile /usr/local/apache2/passwords/passwd
1119 Require valid-user
1120
1121 </Directory>
1122
1123
1124 </VirtualHost>
1125
<snip>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>