I have an apache server setup with two virtual hosts:
<VirtualHost 1.2.3.4:80>
and
<VirtualHost 1.2.3.4:443>
I'm using tomcat-3.2-beta5.1 and mod_jk. I want to tell tomcat about my
different virtual hosts, but the problem is they have the same
servername in each case, but different documentroots.
In the server.xml I want to do something like:
<Host name="www.foo.bar" port="80">
or even
<Host name="www.foo.bar:80">
But neither of these seem to work and I am wondering if there is a way
to configure this. (tomcat needs to use a different docbase in each case
- secure and insecure content are intended to be separate.
Is the a way this could be achieved?
I'd also like the report that on
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html
there is an error in the Virtual Hosting section. The example server.xml
for "option 2" is actually the apache httpd.conf snippet from the
example above it, instead of the server.xml snippet that might have
helped me out :-)
Tom.
--
.^. .-------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | Open Source hacker, advocate | [EMAIL PROTECTED] |
^^-^^ '-------------------------------------------------------'
PGP signature