Greetings,

Can't seem to get the dots connect between an Apache defined Virtual host and one defined in server.xml.

The desired effect is that I want static html pages loaded from Apache and jsp/servlet loaded by Tomcat from the same "virtual host" definition. Read a lot of instructions/books..etc and have in the past had no problems with using the default "localhost" (out of the box) setup.... now I need this more complex arrangement and I'm missing a piece.. can't figure out what it is... Following are the pieces I thought were necessary...

On Apache (2.0.48) I have name based virtual hosting..

Example (snipped version)

    <VirtualHost 207.137.13.166>
       ServerName dev1.adomain.com
       ...other stuff.....
    </VirtualHost>

On Tomcat (4.1.29) (abreviated) the Server.xml I have

<Host name="dev1.adomain.com"
    appBase="webapps/dev1"

    <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
         ...etc....
     />
     ... other stuff....
</Host>

This generates the correct mod_jk.conf which is included in the httpd.conf file at the end..

I see my web application defined there and all looks "correct" with the entry...

<VirtualHost dev1.adomin.com>
  ServerName dev1.adomain.com

...etc...

</VirtualHost>

I have a JkMount as follows (example)

  JkMount /MyWebAp/servletname ajp13
  JkMount /MyWebAp/*.jsp ajp13

(started and restarted everything several times..)

Unfortunately the following Url does not work

http://dev1.adomain.com/MyWebAp/servletname

nor

http://dev1.adomain.com/MyWebAp/index.jsp

... I get an Apache "Not Found"..etc... Obviously I've missed a dot so it is not connecting.. Basically I suspect that the Virtualhost def in httpd.conf is conflicting with the one supplied in mod_jk.conf.. But so far I have not been able to resolve this..

(Notes.. assume the example domain "dev1.adomain.com" points to 207.137.13.166 is registered with a DNS service. I have no problems seeing static pages at that domain in the htdocs/dev1 directory)

Clues and suggestions..

John..

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



Reply via email to