tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wynter" <da...@roamware.co.uk>
Subject RE: 2 VirtualHosts now work, mod_jk not
Date Fri, 22 Aug 2003 11:19:33 GMT
Now I am getting somewhere.

I had left out the Directory directives in httpd.conf in my previous post
because I had editted it from the Tomcat site vhost example, one that had a
global directive, not for each VirtualHost. I found that the web.xml file
for the rwsite ahd a different servlet name and thus the catalina.out error.

Now I use a index.html in each of the webapp directories (/se, /rwtransform
& /rwsite) in each it has a
<body
onload="location='http://www.domainname.com:8080/webappname/servlet/webappna
me/templates/index.vm';">

This overcomes the lack of mod_jk working. I'd still like to do away with
this redirect if I can. Any pointers? I have a feeling it is something to do
with the JkMount directives, which are redirect everything to Tomcat from
nmy understanding.

Here is an excerpt from my httpd.conf-------------------------------->

NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#


JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"

JkLogLevel debug

<VirtualHost *>
    ServerName www.stpenable.com

    #################### www.stpenable.com:/se ####################

    ServerAlias localhost
    # Static files
    DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se
    Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se

    <Directory "/usr/local/jakarta-tomcat-4.1.12/webapp2/se">
        Options Indexes FollowSymLinks
        DirectoryIndex index.vm index.html
    </Directory>

    <Location "/se/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>
    <Location "/se/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /usr/local/jakarta-tomcat-4.1.12/webapp2/se/*  ajp13

    #################### www.stpenable.com:/rwtransform ####################

    Alias /rwtransform /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform

    <Directory "/usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform">
        Options Indexes FollowSymLinks
        DirectoryIndex index.vm  index.html
    </Directory>

    <Location "/rwtransform/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>
    <Location "/rwtransform/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform/*  ajp13

</VirtualHost>

<VirtualHost *>
    ServerName www.roamware.co.uk

    #################### www.roamware.co.uk:/rwsite ####################

    # Static files
    DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite

    Alias /rwsite /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite

    <Directory "/usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite">
        Options Indexes FollowSymLinks
        DirectoryIndex index.vm  index.html
    </Directory>

    <Location "/rwsite/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>
    <Location "/rwsite/META-INF/*">
        AllowOverride None
        deny from all
    </Location>

    JkMount /usr/local/jakarta-tomcat-4.1.12/webapp1/rwsite/*  ajp13

</VirtualHost>

I get the feeling no one is reading these, but hopefully some other poor
soul will find this helpful in the archives.

David


Mime
View raw message