multi domans on one machine


Recommended Posts

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

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

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.