Take out the lines that look like this:

JkMount /someURL ajp13

The typical setup is something like this:

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

John

> -----Original Message-----
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:36 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> I did create it by hand.
> 
> I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
> thing inside as before.
> In httpd.conf
> I have 
> 
> Include /usr/local/tomcat/conf/auto/mod_jk.conf
> 
> <IfModule mod_jk.c>
>    JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
>    JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
>    JkLogLevel debug
>    JkMount /examples ajp13
>    JkMount /examples/* ajp13
> 
> </IfModule>   
> 
> 
> Any more advices? Thanks
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > Is that something you created by hand?  That's not output 
> from ApacheConfig.
> > Are there entries in httpd.conf for things like JkWorkersFile, etc.?
> > 
> > John
> > 
> > > -----Original Message-----
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 12:58 PM
> > > To: Tomcat Users List
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > John,
> > > Thank you very much for your response.
> > > 
> > > after i chang host2.com to www.host2.com and restart 
> tomacat apache
> > > 
> > > My mod_jk.conf is like:
> > > 
> *******************************************************************
> > > <VirtualHost www.host2.com>
> > >     ServerName www.host2.com
> > > 
> > >     JkMount /servlets ajp13
> > >     JkMount /servlets/* ajp13
> > > 
> > >     JkMount /manager ajp13
> > >     JkMount /manager/* ajp13
> > > </VirtualHost>
> > > 
> > > <VirtualHost www.host1.com>
> > >     ServerName www.host1.com
> > > 
> > >     JkMount /webdav ajp13
> > >     JkMount /webdav/* ajp13
> > > 
> > >     JkMount /mlogin ajp13
> > >     JkMount /mlogin/* ajp13
> > > 
> > >     JkMount /login ajp13
> > >     JkMount /login/* ajp13
> > > 
> > >     JkMount /examples ajp13
> > >     JkMount /examples/* ajp13
> > > 
> > >     JkMount /tomcat-docs ajp13
> > >     JkMount /tomcat-docs/* ajp13
> > > 
> > >     JkMount /manager ajp13
> > >     JkMount /manager/* ajp13
> > > </VirtualHost>
> > > 
> ********************************************************************
> > > 
> > >  But it still not working.
> > > 
> > > Thanks for any futher suggestion.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > On Fri, 28 Feb 2003, Turner, John wrote:
> > > 
> > > > 
> > > > What are the contents of mod_jk.conf?
> > > > 
> > > > Did you restart Apache so that it could pick up the changes?
> > > > 
> > > > Is there a VirtualHost container in mod_jk.conf for 
> www.host2.com?
> > > > 
> > > > In your Host container in server.xml, you list the name as 
> > > "host2.com", not
> > > > "www.host2.com".   Is this a typo?  The two are different.  
> > > Either change it
> > > > to "www.host2.com" or use <Alias> within the Host 
> container to alias
> > > > www.host2.com to host2.com.
> > > > 
> > > > John
> > > > 
> > > > > -----Original Message-----
> > > > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > > > Sent: Friday, February 28, 2003 11:36 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > > 
> > > > > 
> > > > > John,
> > > > > 
> > > > > where is your reply ?
> > > > > 
> > > > > how to get apache-tomcat virtual host work? is an easy
> > > > > question as long as you are using Tomcat 3.2.3 or 
> Tomcat 3.3.1.
> > > > > 
> > > > > Although I'm working very successfully with virtual hosts 
> > > > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to 
> get virtual 
> > > > > hosts running with Tomcat 4.
> > > > > 
> > > > > Only the default virtual host is running. It doesn't matter
> > > > > which virtual host I'm using.
> > > > > 
> > > > > I'm not alone and still working on it.
> > > > > 
> > > > > --Dave
> > > > > 
> > > > >  
> > > > > 
> > > > > Is this a glitch?  Did my first reply to this post get lost?
> > > > > 
> > > > > John
> > > > > 
> > > > > 
> > > > > > I have redhat linux 7.3 
> > > > > >  
> > > > > >  i have two virtual host in my machine www.host1.com and
> > > > > www.host2.com
> > > > > >  www.host1.com is the default one.
> > > > > >  I have installed apache-tomcat on my machine
> > > > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > > > >  i mean both http://www.host1.com:8080/examples and 
> > > > > >             http://www.host1.com/examples  come to same 
> > > > > > result which is
> > > > > >  good.
> > > > > >  i want www.host2.com work same way as 
> www.host1.com in term 
> > > > > > of running
> > > > > >  apache-tomcat i did following to server.xml
> > > > > >   
> > > > > >  
> > > > > >  I add <host> dirctive like this
> > > > > >  
> > > > > > 
> **************************************************************
> > > > > > *************
> > > > > >   <Host name="host2.com" debug="0" 
> appBase="/home/www/zhujp98"
> > > > > >            unpackWARs="true">
> > > > > > 
> > > > > >            <Listener
> > > > > >               
> > > className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > > > > >                         append="true"  />
> > > > > > 
> > > > > >         <!-- Normally, users must authenticate 
> themselves to 
> > > > > > each web app
> > > > > >              individually.  Uncomment the following 
> entry if you
> > > > > would
> > > > > >           like
> > > > > >              a user to be authenticated the first time they 
> > > > > > encounter a
> > > > > >              resource protected by a security 
> constraint, and 
> > > > > > then have
> > > > > >                that
> > > > > >              user identity maintained across *all* web 
> > > applications
> > > > > >              contained
> > > > > >              in this virtual host. -->
> > > > > >         <!--
> > > > > >         <Valve 
> > > > > > className="org.apache.catalina.authenticator.SingleSignOn"
> > > > > >                    debug="0"/>
> > > > > >         -->
> > > > > > 
> > > > > >         <!-- Access log processes all requests for this 
> > > > > > virtual host.  By
> > > > > >              default, log files are created in the 
> > > "logs" directory
> > > > > >              relative to
> > > > > >              $CATALINA_HOME.  If you wish, you can specify a
> > > > > different
> > > > > >              directory with the "directory" attribute.  
> > > > > > Specify either a
> > > > > >              relative
> > > > > >              (to $CATALINA_HOME) or absolute path 
> to the desired
> > > > > >               directory.
> > > > > >         -->
> > > > > >         <Valve 
> > > className="org.apache.catalina.valves.AccessLogValve"
> > > > > >                  directory="logs"  
> > > prefix="localhost_access_log."
> > > > > >                  suffix=".txt"
> > > > > >                  pattern="common"/>
> > > > > > 
> > > > > >         <!-- Logger shared by all Contexts related to this 
> > > > > > virtual host.
> > > > > >             By
> > > > > >              default (when using FileLogger), log files are 
> > > > > > created in the
> > > > > >               "logs"
> > > > > >              directory relative to $CATALINA_HOME.  If you 
> > > > > > wish, you can
> > > > > >               specify
> > > > > >              a different directory with the "directory" 
> > > attribute.
> > > > > >              Specify either a
> > > > > >              relative (to $CATALINA_HOME) or 
> absolute path to 
> > > > > > the desired
> > > > > >              directory.-->
> > > > > >         <Logger 
> > > className="org.apache.catalina.logger.FileLogger"
> > > > > >                  directory="logs"  prefix="localhost_log." 
> > > > > > suffix=".txt"
> > > > > >                 timestamp="true"/>
> > > > > > 
> > > > > >         <!-- Define properties for each web 
> > > application.  This is
> > > > > only
> > > > > >            needed
> > > > > >              if you want to set non-default properties, 
> > > or have web
> > > > > >              application
> > > > > >              document roots in places other than the 
> > > virtual host's
> > > > > >              appBase
> > > > > >              directory.  -->
> > > > > > 
> > > > > >         <!-- Tomcat Root Context -->
> > > > > >         <!--
> > > > > >           <Context path="" docBase="ROOT" debug="0"/>
> > > > > >         -->
> > > > > > 
> > > > > >          <Context path="/servlets" 
> > > > > > docBase="/home/www/zhujp98/servlets"
> > > > > >          debug="0"
> > > > > >                 reloadable="true"/>
> > > > > >  </Host>
> > > > > > 
> > > > > > 
> **************************************************************
> > > > > > ****************
> > > > > > 
> > > > > > after that I can access servlets using 
> > > > > http://www.host2.com:8080/servlets
> > > > > 
> > > > > but fails when i use http://www.host2.com/servlets
> > > > > 
> > > > > it seems that apache did not connect to tomcat in terms of
> > > > > www.host2.com
> > > > > 
> > > > > how can i fix this problem?
> > > > > Thanks
> > > > > 
> > > > > j.p 
> > > > > 
> > > > > 
> > > > > 
> > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > > > > 
> > > > > 
> > > > > 
> > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > > > > 
> > > > > 
> > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > > > > 
> > > > > 
> > > > > 
> > > 
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > > > > 
> > > > 
> > > > 
> > > 
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > > 
> > > 
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to