tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Adding a new webapps directory
Date Sat, 17 Oct 2009 16:13:55 GMT
> From: Marco Rocco [mailto:mr85mr@gmail.com]
> Subject: Re: Adding a new webapps directory
> 
> in /opt/tomcat/conf/server.xml i have added:
> <Host name="Myservlets" appBase="/home/marco/Myservlets"/>
> 
> But if i try to access it at http://localhost:8080/ServletExample
> i get: _The requested resource (/ServletExample) is not available.

As you should.  Your <Host> name is Myservlets, so that will need to be used on the
URL:

http://Myservlets:8080/ServletExample

You will need to insure that the name "Myservlets" resolves to the IP address of your server.

Alternatively, change the defaultHost attribute of your <Engine> to point to "Myservlets";
this will allow you to access your ServletExample via any URL *other* than "localhost", such
as the IP address:

http://127.0.0.1:8080/ServletExample

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message