[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ajug-members]: Tomcat configuration question
- To: Ed Jenkins <andexor@yahoo.com>
- Subject: Re: [ajug-members]: Tomcat configuration question
- From: Christopher Fowler <cfowler@outpostsentinel.com>
- Date: Tue, 20 Apr 2004 08:22:19 -0400
- Cc: ajug-members@ajug.org
- In-Reply-To: <20040420120817.7026.qmail@web60305.mail.yahoo.com>
- References: <20040420120817.7026.qmail@web60305.mail.yahoo.com>
localhost looks for the phrase localhost in the GET command from the
browser. When I did change my 192.168.2.4 to localhost in server.xml I
got a 404 error from Apache. I'm using Apache + Tomcat.
On Tue, 2004-04-20 at 08:08, Ed Jenkins wrote:
> I belive that's why it says "localhost" -- so you can change the IP address if needed and not have
> to change this file.
>
> Ed
>
> --- Christopher Fowler <cfowler@outpostsentinel.com> wrote:
> > Below is a sample server.xml from O'Reilly book:
> >
> > <Server port="8005" shutdown="SHUTDOWN" debug="0">
> > <Service name="Tomcat-Standalone">
> > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> > port="8080" minProcessors="5" maxProcessors="75"
> > enableLookups="true" redirectPort="8443"/>
> > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
> > port="8443" minProcessors="5" maxProcessors="75"
> > acceptCount="10" debug="0" scheme="https" secure="true"/>
> > <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
> > clientAuth="false" protocol="TLS" />
> > </Connector>
> > <Engine name="Standalone" defaultHost="localhost" debug="0">
> > <Host name="localhost" debug="0" appBase="webapps"
> > unpackWARs="true" autoDeploy="true">
> > <Context path="" docBase="ROOT" debug="0"/>
> > <Context path="/orders" docBase="/home/ian/orders" debug="0"
> > reloadable="true" crossContext="true">
> > </Context>
> > </Host>
> > </Engine>
> > </Service>
> > </Server>
> >
> > My question is can I disable ther virtual host to web app mapping? If
> > a user wants to access the server with http://<ip address> I do not want to have
> > to enter that address into the <host name="<ip>"> tag each time the
> > IP address changes. I would like the app to be available to anyone no matter what
> > the server is called.
> >
> > Thanks,
> > Chris
> >
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25
> http://photos.yahoo.com/ph/print_splash