Kevin -

When I am in break, let me go back to your question of how to.
I am not sure what platform your web server runs on, let me guess you are runnning Tomcat 4.x.x on Windows or Linux. If so, first you need to modify your server.xml usually under $CATALINA_HOME/conf/, insert Host block for each domain, for instance:


<Host name="www.thisdomain.com" debug="0" appBase="webapps" unpackWARs="true">
<!-- comment: I see you started with www, so you should add alias here -->
<Alias>www.thisdomain.com</Alias>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="thisdomain." suffix=".log" timestamp="true"/>
<Context path="" docBase="thisdomain" debug="0" reloadable="true"/>
<Context path="/test" docBase="thisdomain" debug="0" reloadable="true"/>
</Host>
<Host name="www.thatdomain.com" debug="0" appBase="webapps" unpackWARs="true">
<!-- comment: I see you started with www, so you should add alias here -->
<Alias>www.thatdomain.com</Alias>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="thatdomain." suffix=".log" timestamp="true"/>
<Context path="" docBase="thatdomain" debug="0" reloadable="true"/>
<Context path="/test" docBase="thatdomain" debug="0" reloadable="true"/>
</Host>


Secondly, you must map your domain name to your machine IP address, under Linux/UNIX, open /etc/hosts file, under PC, search for file
hosts, open it and insert IP and domain name in pair, for example:
# IP Address Domain Name
192.168.1.1 www.thisdomain.com
192.168.1.1 www.thatdomain.com


However, I didn't test for this, I may get wrong or you need to modify some other DNS files. Please correct me if anyone see errors here.
Good luck!


-Daniel


Kevin Bennett wrote:


Is it possible to host multiple domains on a single IP address? I host my own server at home and would like to be able to have more than one site hosted on my single machine/IP at home. I'd like something like this - www.thisdomain.com <http://www.thisdomain.com> and www.thatdomain.com <http://www.thatdomain.com> both hosted on my single IP. It's important that I be able to keep the correct name in the address bar of the browser.
Anyone know if this is possible, and if so how?
TIA,
Kevin
------------------------------------------------------------------------
Do you Yahoo!?
SBC Yahoo! DSL <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/> - Now only $29.95 per month!




_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to