Hello,

I have been successful in creating multiple hosts and able to redirect the
traffic from apache web server to their associated applications (simple).

The following configuration does not work. Here is what I am trying to do:

I have separate applications on different domains "fire.rmp.com" and "
outnet.rmp.com". But with " relay.rmp.com" :

i) I need to be able to connect to the welcome screen of geronimo. (
http://relay.rmp.com/welcome)
ii) need to be able to connect to the console screen of geronimo
(http://relay.rmp.com/console
)
iii) need to connect to other sample apps http://relay.rmp.com/relay

I have attached the "geronimo-web.xml" for "http://relay.rmp.com/"; this is
the root of the application.

I also inserted geronimo-web.xml for "http://relay.rmp.com/welcome";

[EMAIL PROTECTED] WEB-INF]# pwd
/usr/local/geronimo/repository/geronimo/welcome-tomcat/1.1.1/welcome-
tomcat-1.1.1.car/WEB-INF

[EMAIL PROTECTED] WEB-INF]# more geronimo-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns=" http://geronimo.apache.org/xml/ns/j2ee/web-1.1 ">
       <environment>
               <moduleId>
                       <groupId>geronimo</groupId>
                       <artifactId>welcome</artifactId>
                       <version>1.1</version>
               </moduleId>
       </environment>
       <context-root>/welcome</context-root>
       <host> relay.rmp.com</host>
</web-app>

But it give me a 404 whenever I try to connect to it (
http://relay.rmp.com/welcome)

Sharing or Creating multiple instances of geronimo, how does creating
separate multiple instances of geronimo help ? , also are there any details
on this (Gianny or John if u can answer this since you have worked on this)

http://marc.theaimsgroup.com/?l=geronimo-user&m=115638962202937&w=2
--
Regards,
Simon
geronimo_web.xml
----------------

relay.rmp.com
        /
        /relay
        /console
        /welcome



fire.rmp.com
        /
        /fire


outnet.rmp.com
        /
        /outnet



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1";>
        <environment>
                <moduleId>
                        <groupId>sample.applications</groupId>
                        <artifactId>relay</artifactId>
                        <version>1.1</version>
                </moduleId>
        </environment>
        <context-root>/</context-root>
        <host>relay.rmp.com</host>
</web-app>


apache (httpd-vhosts.conf)
--------------------------


<VirtualHost *>
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /
        ServerName relay.rmp.com
        ServerAlias relay.rmp.com
        ErrorLog logs/rmp.com-error_log
        CustomLog logs/rmp.com-access_log common

        <IfModule mod_jk.c>
                JkWorkersFile conf/workers.properties
                JkLogFile logs/apache_mod_jk.log
                JkLogLevel error

                JkMount /welcome/* ajp13
                Alias /welcome/* 
"/usr/local/geronimo/repository/geronimo/welcome-tomcat/1.1.1/welcome-tomcat-1.1.1.car/"
                <Directory 
"/usr/local/geronimo/repository/geronimo/welcome-tomcat/1.1.1/welcome-tomcat-1.1.1.car/">
                        Options Indexes FollowSymLinks
                        Allow from all
                </Directory>
                <Location "//WEB-INF/">
                        #AllowOverride None
                        Deny from all
                </Location>

                JkMount /console/* ajp13
                Alias /console/* 
"/usr/local/geronimo/repository/geronimo/webconsole-tomcat/1.1.1/webconsole-tomcat-1.1.1.car/"
                <Directory 
"/usr/local/geronimo/repository/geronimo/webconsole-tomcat/1.1.1/webconsole-tomcat-1.1.1.car/">
                        Options Indexes FollowSymLinks
                        Allow from all
                </Directory>
                <Location "//WEB-INF/">
                        #AllowOverride None
                        Deny from all
                </Location>

                JkMount /relay/* ajp13
                Alias /relay/* 
"/usr/local/geronimo/repository/sample/applications/relay/1.1/relay-1.1.war/"
                <Directory 
"/usr/local/geronimo/repository/sample/applications/relay/1.1/relay-1.1.war/">
                        Options Indexes FollowSymLinks
                        Allow from all
                </Directory>
                <Location "//WEB-INF/">
                        #AllowOverride None
                        Deny from all
                </Location>

                JkMount /* ajp13
                Alias /* 
"/usr/local/geronimo/repository/sample/applications/relay/1.1/relay-1.1.war/"
                <Directory 
"/usr/local/geronimo/repository/sample/applications/relay/1.1/relay-1.1.war/">
                        Options Indexes FollowSymLinks
                        Allow from all
                </Directory>
                <Location "//WEB-INF/">
                        #AllowOverride None
                        Deny from all
                </Location>
        </IfModule>

</VirtualHost>


workers.properties
------------------

worker.list=geronimo_ajp13

worker.geronimo_ajp13.port=8009
worker.geronimo_ajp13.host=localhost
worker.geronimo_ajp13.type=ajp13

Error Displayed
---------------


HTTP Status 404 - /welcome

--------------------------------------------------------------------------------

type Status report

message /welcome

description The requested resource (/welcome) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.15


Reply via email to