You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jerry QU <je...@baijia.com> on 2001/07/26 01:01:04 UTC

virtual hosting conf question

Hi All,

We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.

it works fine when use Directory:

    Alias /loc "/home/.../path"

    <Directory "/home/.../path">
        Options Indexes FollowSymLinks
    </Directory>
    JkMount /loc/servlet/* ajp12
    JkMount /loc/*.jsp ajp12

But when trying virtual hosting:
    
NameVirutalHost ip
    
    <VirtualHost ip>
        ServerName www.domain.com
        DocumentRoot "/home/.../path"
        JkMount /servlet/* ajp12
        JkMount /*.jsp ajp12
    <Directory "/home/.../path">
        Options Includes Indexes FollowSymlinks
        AllowOverride AuthConfig FileInfo Indexes Limit Options
        Order allow, deny
        Allow from all
    </Directory>

    </VirtualHost>

WE are geting 404 error for all .jsp files and looks like the apache to tomcat redirect not works

anything missing?


TIA

Jerry

 

    


Re: virtual hosting conf question

Posted by Jerry QU <jq...@baijia.com>.
it works by using ajp12. what I missed was vhost setting in server.xml. and I did in right way but the code was actually comment out . a very very stupid mistake

thanks anyway

Jerry


 
----- Original Message ----- 
From: "Kaneda K" <ka...@dedaletechnology.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, July 26, 2001 4:45 PM
Subject: Re: virtual hosting conf question


> I Might be wrong, but in order to allow Apache to communicate with tomcat, 
> you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?
> 
> At 07:01 26/07/2001 +0800, you wrote:
> >Hi All,
> >
> >We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
> >
> >it works fine when use Directory:
> >
> >     Alias /loc "/home/.../path"
> >
> >     <Directory "/home/.../path">
> >         Options Indexes FollowSymLinks
> >     </Directory>
> >     JkMount /loc/servlet/* ajp12
> >     JkMount /loc/*.jsp ajp12
> >
> >But when trying virtual hosting:
> >
> >NameVirutalHost ip
> >
> >     <VirtualHost ip>
> >         ServerName <http://www.domain.com>www.domain.com
> >         DocumentRoot "/home/.../path"
> >         JkMount /servlet/* ajp12
> >         JkMount /*.jsp ajp12
> >     <Directory "/home/.../path">
> >         Options Includes Indexes FollowSymlinks
> >         AllowOverride AuthConfig FileInfo Indexes Limit Options
> >         Order allow, deny
> >         Allow from all
> >     </Directory>
> >
> >     </VirtualHost>
> >
> >WE are geting 404 error for all .jsp files and looks like the apache to 
> >tomcat redirect not works
> >
> >anything missing?
> >
> >
> >TIA
> >
> >Jerry
> >
> >
> >
> >
> >
> 

Re: virtual hosting conf question

Posted by Kaneda K <ka...@dedaletechnology.com>.
I Might be wrong, but in order to allow Apache to communicate with tomcat, 
you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?

At 07:01 26/07/2001 +0800, you wrote:
>Hi All,
>
>We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
>
>it works fine when use Directory:
>
>     Alias /loc "/home/.../path"
>
>     <Directory "/home/.../path">
>         Options Indexes FollowSymLinks
>     </Directory>
>     JkMount /loc/servlet/* ajp12
>     JkMount /loc/*.jsp ajp12
>
>But when trying virtual hosting:
>
>NameVirutalHost ip
>
>     <VirtualHost ip>
>         ServerName <http://www.domain.com>www.domain.com
>         DocumentRoot "/home/.../path"
>         JkMount /servlet/* ajp12
>         JkMount /*.jsp ajp12
>     <Directory "/home/.../path">
>         Options Includes Indexes FollowSymlinks
>         AllowOverride AuthConfig FileInfo Indexes Limit Options
>         Order allow, deny
>         Allow from all
>     </Directory>
>
>     </VirtualHost>
>
>WE are geting 404 error for all .jsp files and looks like the apache to 
>tomcat redirect not works
>
>anything missing?
>
>
>TIA
>
>Jerry
>
>
>
>
>