[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tomcat configuration question



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