Ihasn Posted June 23, 2003 Share Posted June 23, 2003 I want to host 2 of my domains on one machine and i am wondering how i can do it with apache? any help would be great. Like what i would have to do, no real details unless you want to go that deep for me. Thanks Link to comment Share on other sites More sharing options...
John Veteran Posted June 23, 2003 Veteran Share Posted June 23, 2003 afaik, you must first tell the OS to have multiple IP addresses. i know how to do it with IIS, but apache should be similar. when you set up the new site, you can tell it what IP to attatch the site to. Link to comment Share on other sites More sharing options...
Ihasn Posted June 23, 2003 Author Share Posted June 23, 2003 ok i will give that a try....like put to network cards in that that will give it two ips? Link to comment Share on other sites More sharing options...
+BudMan MVC Posted June 23, 2003 MVC Share Posted June 23, 2003 Arrrghhh - no you do not put 2 network cards in. There are 2 ways you can host multiple domains on one webserver, one being with different IP addresses, the other with host headers. Unless you own 2 IP addresses, you can not use multiple IP addresses method. If you have domain(s) directed towards your outside ip address, then just setup host headers and have your domain(s) come up that way. Yes putting in multiple NICs would be a way to have another IP address, but there would really be no point in doing that. Just add multiple IP addresses to your current NIC, if using dhcp you can NOT do this. But this will only work, if for a private lan, or the addresses are real public addressess - if this is a home machine, behind a router - yes you you can have multiple IPs on your NIC (but these would be private addresses) - so how would you get the public IP to get to these 2 different private addresses from one real outside address? You really should not be hosting up sites off your home box to the public net anyway, multiple reasons NOT too, not one good one to do it. Find a webhost to serve up your info to the world! I am sure there is one out there that will fit into your budget, even if it is zero. Link to comment Share on other sites More sharing options...
etron Posted June 23, 2003 Share Posted June 23, 2003 in apache, it's called Virtual Hosts, you can define these by editing your httpd.conf, more info and examples can be found at http://httpd.apache.org/docs/vhosts/ Link to comment Share on other sites More sharing options...
Recommended Posts