tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ada <suppo...@try.gov.hk>
Subject Re: tomcat and apache on separate machine
Date Mon, 12 Nov 2001 04:44:26 GMT
Thank you for your reply.  I have tried HelloWorldExample and it is ok.
But I wonder how the path is set.

When I request http://apachehost/examples/servlets or
http://apahcehost/examples/servlets/index.html, I expect it will return
file d:/tomcat/webapps/examples/servlets/index.html in the tomcat server,
because I have the following line in the config file:
    Alias /examples "d:/tomcat/webapps/examples"

But the error log return :
File does not exist: d:/tomcat/webapps/examples/servlets/index.html


Ada.

Larry Isaacs wrote:

> I don't know if it is a typo, but I don't believe there is
> a resource or directory corresponding to
> http://apachehost/examples/servlets, so 404 is the correct response.
> Try:
>
>     http://apachehost/examples/servlet/HelloWorldExample
>
> Larry
>
> > -----Original Message-----
> > From: Ada [mailto:support2@try.gov.hk]
> > Sent: Friday, November 09, 2001 2:35 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: tomcat and apache on separate machine
> >
> >
> > Hi all,
> >
> > I need help to setup tomcat 3.2.2. and apache1.3.20 on separate
> > machine!!
> >
> > I have done the following steps to move the apache to a new machine.
> > 1. move file mod_jk.conf-customized to new machine.
> > 2. move file workers.properties to new machine.
> > 3. modify httpd.conf in the new machine to point to file
> > mod_jk.conf-customized.
> > 4. modify mod_jk.conf-customized to point the file worker.properties.
> > 5. modify workers.properties, change the value of
> > worker.remotetomcat.host to the ip of tomcat machine.
> > 6. I suppose there is no changes required for server.xml in tomcat
> > machine.
> >
> > When I tried to access URL http://apachehost/examples/servlets, I got
> > error message 404.  It seems that it was trying to access the
> > directory
> > in the apache machine.
> >
> > Anything  I am missing?
> >
> >
> > mod_jk.conf-customized
> > =================
> > LoadModule jk_module modules/mod_jk.dll
> >
> > JkWorkersFile "d:/apache/conf/workers.properties"
> > JkLogFile "d:/apache/logs/mod_jk.log"
> > JkLogLevel error
> > JkMount /*.jsp ajp12
> > JkMount /servlet/* ajp12
> >
> > #########################################################
> > # Auto configuration for the /examples context starts.
> > #########################################################
> >
> > #
> > # The following line makes apache aware of the location of
> > the /examples
> >
> > context
> > #
> > Alias /examples "d:/tomcat/webapps/examples"
> > <Directory "d:/tomcat/webapps/examples">
> >     Options Indexes FollowSymLinks
> > </Directory>
> >
> > #
> > # The following line mounts all JSP files and the /servlet/ uri to
> > tomcat
> > #
> > JkMount /examples/servlet/* ajp13
> > JkMount /examples/*.jsp ajp13
> >
> > workers.properties
> > =============
> > worker.list=ajp12, ajp13
> > worker.ajp12.port=8007
> > worker.ajp12.host=xx.xx.xxx.xx   <- ip of tomcat machine
> > worker.ajp12.type=ajp12
> > worker.ajp12.lbfactor=1
> >
> > worker.ajp13.port=8009
> > worker.ajp13.host=xx.xx.xxx.xx  <- ip of tomcat machine
> > worker.ajp13.type=ajp13
> > worker.ajp13.lbfactor=1
> >
> > Ada.
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message