Hi,

I have 2 domain names resolving to the same IP address and port 80. I am
using mod_jk, having been warned about warpconnector. So I have 2
VirtualHost dorectives in my httpd.conf. When I leave the 3 turbine aps in
webapp direcotory, I get the "jk_open_socket, connect() failed errno = 111".
So I had to put them into separate webapp directories for each domain name
(Host directive in server.xml) Here is an excerpt from my httpd.conf (Tomcat
cannot correctly geneerate a mod_jk.cong for same IP and port for 2 hosts,
believe me I have spent 20 hours on this).

The problem is that in each webapp directorys I have a index.vm that does an
onload redirect to the full Turbine index.vm file, all it doe sis render the
directory listing, not porcess the page as it should. Also if I type in the
whole URL to the index.vm it displays, but without the images of included
resources.

Excerpt from 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:/rwtransform ####################

    # Static files
    Alias /rwtransform "/usr/local/tomcat/webapp2/rwtransform"

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


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/rwtransform/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

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

    JkMount /rwtransform/servlet/*  ajp13
    JkMount /rwtransform/*.jsp  ajp13

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

    # Static files
    DocumentRoot "/usr/local/tomcat/webapp2/se"
    Alias / "/usr/local/tomcat/webapp2/se"

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


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/se/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

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

    JkMount /se/servlet/*  ajp13
    JkMount /se/*.jsp  ajp13
</VirtualHost>

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

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

    # Static files
    DocumentRoot "/usr/local/tomcat/webapp1/rwsite"
    Alias / "/usr/local/tomcat/webapp1/rwsite"

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


    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/rwsite/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

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

    JkMount /rwsite/servlet/rwsite  ajp13
    JkMount /rwsite/servlet/*  ajp13
    JkMount /rwsite/*.jsp  ajp13
</VirtualHost>

Anybody achieved this setup?

David Wynter
www.roamware.co.uk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to