homepage Welcome to WebmasterWorld Guest from 50.19.206.49
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Tomcat 4 - 1 IP
Utilizing 1 IP for multiple site in Tomcat 4
stinkyratdog




msg:673593
 10:47 pm on Mar 20, 2002 (gmt 0)

I am new to Tomcat but have worked with IIS for several years. In IIS I use host headers to have multiple sites on one IP address. Is there a way to accomplish this in Apache Tomcat 4?

 

sugarkane




msg:673594
 1:40 pm on Mar 21, 2002 (gmt 0)

Welcome to wmw

I'm not sure if this still applies to Tomcat 4 (probably does) but in v3 you could use virtual hosts in the same way as regular Apache, by putting something similar to this in your httpd.conf file:

NameVirtualHost 10.0.0.1

<virtualhost 10.0.0.1>
DocumentRoot /home/www/whatever
ServerName www.example.com
</virtualhost>

That would set Apache to serve up files from /home/www/whatever in response to requests to www.example/com on IP 10.0.0.1

You could then put the extra Tomcat configuration directives (eg ApJServMount) within <virtualhost></virtualhost> to enable jsp on that site.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved