--- Micael Padraig Og mac Grene <[EMAIL PROTECTED]> wrote:
> I sure am having trouble getting an example of server.xml.  I bathed!  Is 
> the 4.0 server.xml structured about like the 3.2 was?  I have looked at the 
> documentation, but I am practically oriented.  If someone would show me one 
> copy of a working server.xml with virtual hosting, I would be off and 
> running.  But --- no!  ;-)  Come on, someone, help me out.
> 

I just a simple thing.
1. Open server.xml
2. Copy the <Host> section and paste if again below the original <Host>
section.
3. Change the default values to something like
<Host name="shrek" debug="0" appBase="e:/shrek" unpackWARs="true">
Where my comp is also called shrek, and the web apps for this shrek server will
be kept in e:/shrek sub-directory.
4. Copy the ROOT folder from the actual Tomcat/webapps folder to this new
folder. So I now have e:/shrek/ROOT.
5. Change the text in index.html in e:/shrek/ROOT to say something else
e.g "This is my shrek server"
6. Update my hosts file to include an entry for this new name for my computer
e.g. 
192.168.1.219   shrek
7. Test this new entry by trying out "ping shrek" in the command line
8. Start Tomcat and point my browser to http://localhost:8080/ to see the
default Tomcat Welcome page.
9. Next, point my browser to http://shrek:8080/ to see another index page 
that says, "This is my Shrek server".

I don't know if this is what you're looking for though. I do not have any DNS
and such stuff.

> -- micael
> 
Sriram

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to