Forum Moderators: phranque

Message Too Old, No Replies

VIrtual Hosts help

         

JBandit

5:41 pm on May 11, 2005 (gmt 0)



I have 1 IP that is directed to 1 dedicated web server (I own 2 different domains both of which I want to point to different websites). Currently I am using apache 2.0.54 and already have one website running on port 80 that uses the url www.example.com. What I want to do if I can is make it so that the url www.example.net basically points to another website (Document root) on the same server. If I can I want these both to run off of port 80 but If I cant i am willing to run theserver.us off an alternate port. I found some info on the apache virtual hosts documentation but none of the scenarios seemed to match my problem in particular. Can someone point me to some info on this particular scenario and/or help me out with the lines I need to add to http.conf? Thanks in advance.

[edited by: jdMorgan at 6:08 pm (utc) on May 11, 2005]
[edit reason] Examplified. [/edit]

Romeo

5:52 pm on May 11, 2005 (gmt 0)

10+ Year Member



Hi JBandit,

welcome to WebMasterWorld.

What you want, is "name based virtual hosting", on one server box running with one IP address, and all virtual hosts running on the same port 80, no problem.
This docu has all you need to know, including examples:
[httpd.apache.org...]

Regards,
R.