No problem, glad to help.

John


> -----Original Message-----
> From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 1:45 PM
> To: 'Tomcat Users List'
> Subject: RE: aliasing local host
> 
> 
> Hi John,
> 
> Its working fine now. I too was thinking how on the earth,
> http://testme/test can come to my system, and somewhere the 
> connection is
> missing. But you got it right.
> 
> Thanks for getting it work.
> 
> Madhav
> 
> 
> -----Original Message-----
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 7:35 PM
> To: 'Tomcat Users List'
> Subject: RE: aliasing local host
> 
> 
> 
> Every computer with a TCP/IP stack on it defines localhost as 
> 127.0.0.1.
> 127.0.0.1 is a special IP address, that always means "local device" no
> matter what.  Computers and browsers only talk in numbers, 
> not names.  It
> doesn't matter what you put in the URL, if your browser can't 
> find the IP
> address that equals the name, you will get an error.
> 
> If you are on a UNIX-variant, the file you want is /etc/hosts.
> 
> If you are on Windows, the file you want is
> %WINDOWS%\system32\drivers\etc\hosts.  Note that if you have 
> never edited
> the file before on Windows, it won't exist.  Instead, you 
> will want to copy
> %WINDOWS%\system32\drivers\etc\hosts.sam to
> %WINDOWS%\system32\drivers\etc\hosts and edit it.
> 
> You will want, at a minimum, one line in that file:
> 
> 127.0.0.1    localhost
> 
> If you want "testme" to work, you will need to add:
> 
> 127.0.0.1    testme
> 
> Only then can your computer find the IP address it needs to ask Tomcat
> running on your machine for some content.
> 
> John
> 
> 
> > -----Original Message-----
> > From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 1:32 PM
> > To: 'Tomcat Users List'
> > Subject: RE: aliasing local host
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 23, 2003 7:22 PM
> > To: 'Tomcat Users List'
> > Subject: RE: aliasing local host
> > 
> > Hi
> > 
> > >Please define "no success".  
> > 
> > The status of page is "page can not be found"
> > 
> > >Do you have "testme" in your local hosts file, resolving to 
> > 127.0.0.1?  
> > 
> > where do I find local hosts file? I guess this is the reason 
> > for the error. 
> > 
> > >Do you get a Tomcat error message?  If so, what is
> > it?  What happens when you browse to that URL?
> > 
> > I posted log files and console output..I don't have stand 
> > error and standard
> > out files in my log files. I don't know why.. may be I need to 
> > 
> > what might have happend?
> > 
> > thanks
> > Madhav
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Madhava Reddy [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 23, 2003 1:22 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: aliasing local host
> > > 
> > > 
> > > Hi.. 
> > > 
> > > I wanted to alias my localhost to some name. But I am not 
> > > able to understand
> > > what else is needed..I changed Host name.  I have only one 
> > > web application
> > > in webapps namely test. Here is server.xml, catalina_log and 
> > > localhost log
> > > files. 
> > > 
> > > I am just playing to get it working.. but no success yet. 
> > > Please help me.
> > > 
> > > this is the url I tried http://testme/test/index.html
> > > 
> > > 
> > > Thanks
> > > Madhav
> > > 
> > > server.xml
> > > 
> > > <Server port="8005" shutdown="SHUTDOWN" debug="0">
> > > 
> > >   <Listener 
> > > className="org.apache.catalina.mbeans.ServerLifecycleListener"
> > >             debug="0"/>
> > >   
> > >   <Listener
> > > className="org.apache.catalina.mbeans.GlobalResourcesLifecycle
> > > Listener"
> > >             debug="0"/>
> > >   
> > >   <GlobalNamingResources>
> > >     
> > >     <Environment name="simpleValue" type="java.lang.Integer" 
> > > value="30"/>
> > >     
> > >     <Resource name="UserDatabase" auth="Container"
> > >               type="org.apache.catalina.UserDatabase"
> > >        description="User database that can be updated and saved">
> > >     </Resource>
> > >     
> > >     <ResourceParams name="UserDatabase">
> > >       <parameter>
> > >         <name>factory</name>
> > >         
> > > <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
> > >       </parameter>
> > >       <parameter>
> > >         <name>pathname</name>
> > >         <value>conf/tomcat-users.xml</value>
> > >       </parameter>
> > >     </ResourceParams>
> > >   
> > >   </GlobalNamingResources>
> > > 
> > >   <Service name="Tomcat-Standalone">
> > >      <Connector 
> > className="org.apache.coyote.tomcat4.CoyoteConnector"
> > >                port="80" minProcessors="5" maxProcessors="75"
> > >                enableLookups="true" redirectPort="8443"
> > >                acceptCount="10" debug="0" 
> connectionTimeout="20000"
> > >                useURIValidationHack="false" />
> > >  
> > >     <Connector 
> className="org.apache.coyote.tomcat4.CoyoteConnector"
> > >                port="8010" minProcessors="5" maxProcessors="75"
> > >                enableLookups="true" redirectPort="8443"
> > >                acceptCount="10" debug="0" 
> connectionTimeout="20000"
> > >                useURIValidationHack="false"
> > >  
> > > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> > >      <Engine name="Standalone" defaultHost="localhost" debug="10">
> > > 
> > >   <Logger className="org.apache.catalina.logger.FileLogger"
> > >               prefix="catalina_log." suffix=".txt"
> > >               timestamp="true"/>
> > > 
> > >   <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> > >                  debug="0" resourceName="UserDatabase"/>
> > > 
> > >   <Host name="testme" debug="0" appBase="webapps" 
> > > unpackWARs="true"
> > > autoDeploy="true"> 
> > >        <Logger className="org.apache.catalina.logger.FileLogger"
> > >                  directory="logs"  prefix="localhost_log." 
> > > suffix=".txt"
> > >           timestamp="true"/>
> > >   <Context name="/test" docBase="test" debug="1"/>
> > >   </Host>
> > > 
> > >     </Engine>
> > > 
> > >   </Service>
> > > 
> > > </Server>
> > > 
> > > 
> > > localhost log
> > > 
> > > 2003-01-23 19:13:56 StandardHost[testme]: Removing web 
> > application at
> > > context path /test
> > > 2003-01-23 19:13:56 StandardContext[/test]: Stopping
> > > 2003-01-23 19:13:56 StandardContext[/test]: Stopping filters
> > > 2003-01-23 19:13:56 StandardContext[/test]: Processing 
> > > standard container
> > > shutdown
> > > 2003-01-23 19:13:56 ContextConfig[/test]: ContextConfig: 
> > > Processing STOP
> > > 2003-01-23 19:13:56 StandardContext[/test]: Sending 
> > > application stop events
> > > 2003-01-23 19:13:56 StandardContext[/test]: Releasing 
> > > document base test
> > > 2003-01-23 19:13:56 StandardContext[/test]: Stopping complete
> > > 2003-01-23 19:14:04 StandardContext[/test]: Starting
> > > 2003-01-23 19:14:04 StandardContext[/test]: Processing 
> > > start(), current
> > > available=false
> > > 2003-01-23 19:14:04 StandardContext[/test]: Configuring 
> > > default Resources
> > > 2003-01-23 19:14:04 StandardContext[/test]: Configuring 
> > non-privileged
> > > default Loader
> > > 2003-01-23 19:14:04 StandardContext[/test]: Configuring 
> > > default Manager
> > > 2003-01-23 19:14:04 StandardContext[/test]: Processing 
> > > standard container
> > > startup
> > > 2003-01-23 19:14:05 WebappLoader[/test]: Deploying class 
> > > repositories to
> > > work directory D:\tomcat4110\work\Standalone\testme\test
> > > 2003-01-23 19:14:05 WebappLoader[/test]: Deploy class files 
> > > /WEB-INF/classes
> > > to D:\tomcat4110\webapps\test\WEB-INF\classes
> > > 2003-01-23 19:14:05 ContextConfig[/test]: ContextConfig: 
> > > Processing START
> > > 2003-01-23 19:14:05 StandardContext[/test]: Setting 
> > > deployment descriptor
> > > public ID to '-//Sun Microsystems, Inc.//DTD Web 
> > Application 2.3//EN'
> > > 2003-01-23 19:14:05 StandardContext[/test]: Setting 
> > > deployment descriptor
> > > public ID to '-//Sun Microsystems, Inc.//DTD Web 
> > Application 2.3//EN'
> > > 2003-01-23 19:14:05 ContextConfig[/test]:  Accumulating TLD 
> > > resource paths
> > > 2003-01-23 19:14:05 ContextConfig[/test]: Pipline Configuration:
> > > 2003-01-23 19:14:05 ContextConfig[/test]:
> > > org.apache.catalina.core.StandardContextValve/1.0
> > > 2003-01-23 19:14:05 ContextConfig[/test]: ======================
> > > 2003-01-23 19:14:05 
> > > NamingContextListener[/Standalone/testme/test]: Creating
> > > JNDI naming context
> > > 2003-01-23 19:14:05 StandardManager[/test]: Seeding random 
> > > number generator
> > > class java.security.SecureRandom
> > > 2003-01-23 19:14:05 StandardManager[/test]: Seeding of 
> random number
> > > generator has been completed
> > > 2003-01-23 19:14:05 StandardContext[/test]: Posting 
> standard context
> > > attributes
> > > 2003-01-23 19:14:05 StandardContext[/test]: Configuring 
> > > application event
> > > listeners
> > > 2003-01-23 19:14:05 StandardContext[/test]: Sending 
> > > application start events
> > > 2003-01-23 19:14:05 StandardContext[/test]: Starting filters
> > > 2003-01-23 19:14:05 StandardWrapper[/test:default]: Loading 
> > container
> > > servlet default
> > > 2003-01-23 19:14:05 StandardWrapper[/test:invoker]: Loading 
> > container
> > > servlet invoker
> > > 2003-01-23 19:14:06 StandardContext[/test]: Starting completed
> > > 
> > > 
> > > catalina log
> > > 
> > > 2003-01-23 19:13:56 EngineConfig: EngineConfig: Processing STOP
> > > 2003-01-23 19:14:06 EngineConfig: EngineConfig: Processing START
> > > 
> > > 
> > > 
> > > and tomcat console output
> > > 
> > > 0 [main] INFO modeler.Registry  - Loading registry information
> > > 10 [main] INFO modeler.Registry  - Creating new Registry instance
> > > 781 [main] INFO modeler.Registry  - Creating MBeanServer
> > > 2093 [main] INFO http11.Http11Protocol  - Initializing Coyote 
> > > HTTP/1.1 on
> > > port 80
> > > Starting service Tomcat-Standalone
> > > Apache Tomcat/4.1.10
> > > 3936 [main] INFO http11.Http11Protocol  - Starting Coyote 
> > > HTTP/1.1 on port
> > > 80
> > > 3966 [main] INFO common.ChannelSocket  - JK2: ajp13 listening 
> > > on tcp port
> > > 8009
> > > 3996 [main] INFO server.JkMain  - Jk running ID=0 time=0/40
> > > config=D:\tomcat4110\conf\jk2.properties
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

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

Reply via email to