How to make my Home Server host 3 different websites

Discussion in 'Site & Server Administration' started by arizona39, Dec 2, 2008.

  1. #1
    Hey there,

    I have a computer in which XAMPP is installed and is fully functional.

    I can type my IP at the library, perhaps, and access my files in htdocs.

    However, I still need to figure out how to assign a domain to my home Server.

    Also how do I make three websites go hook into my home server?
     
    arizona39, Dec 2, 2008 IP
  2. arizona39

    arizona39 Well-Known Member

    Messages:
    622
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    arizona39, Dec 3, 2008 IP
  3. zdrol

    zdrol Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You will need to add/modify the DNS records for www.site1.tld, www.site2.tld and www.site3.tld to all point at your home IP address. This is done through whomever is hosting your DNS, perhaps your domain registrar.

    If you don't have DNS hosting already, or your domain registrar charges for this, take a look at http://www.everydns.com for free DNS hosting.

    After you have your DNS squared away, you will want to set up Name-based virtual hosts inside of Apache, this will allow you to map www.site1.tld to a different htdocs than www.site2.tld, etc. Your IP address will still map back to the "default" htdocs, as Apache will not have a hostname know which of the sites to present.

    Let me know if you need additional assistance.
     
    zdrol, Dec 3, 2008 IP
  4. arizona39

    arizona39 Well-Known Member

    Messages:
    622
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Great PM Sent

    So I have registered my 3 domains, one through 1and1 and two through enom.com

    What do I set the DNS Servers to?

    How do I create Virtual Hosts on Xampp
     
    arizona39, Dec 3, 2008 IP
  5. classic

    classic Peon

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you need to host your domain on local mashine, you need to have that mashine always up, you need to have static IP address (or use dynamic dns service - google it - if your IP changes from time to time )
    For different sites you will need to change/add some lines to htdocs.conf file of Apache server , also you will need to add some lines to your hosts file , said that , you will need good tutorial as you are new to this matter ;)
    eg
    http://blog.indodx.com/archives/virtual-host-on-windows-with-xampp.jsp

    good luck
     
    classic, Dec 3, 2008 IP
  6. arizona39

    arizona39 Well-Known Member

    Messages:
    622
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #6
    What I dont understand is, is how to get ONE freaking domain to work first...

    I signed up for DynDNS and i dont know wut to do then
     
    arizona39, Dec 3, 2008 IP
  7. amine

    amine Active Member

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #7
    dynamic dns service like no-ip . com

    ""believe me if you have hosting plan is better !!!!""
     
    amine, Dec 3, 2008 IP
  8. arizona39

    arizona39 Well-Known Member

    Messages:
    622
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #8
    I will switch to paid hosting while i accumulate more revenue.

    But I need to switch to a reliable host for a week persay

    That's why I need to host all three on my home server.
     
    arizona39, Dec 3, 2008 IP
  9. zdrol

    zdrol Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Do you have a static IP address?
     
    zdrol, Dec 3, 2008 IP
  10. 3dcandy

    3dcandy Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    The dynamic ip services give you a small program that runs and updates your ip, but that means that you will get a website address provided by the dynamic service. Once that's sorted, you then point your domain name at the no-ip address (or whatever you use) and voila! You could use a directory from that which a different domain can point at if you wish. For example you could put a forum in a subdirectory and then point to that easily...
     
    3dcandy, Dec 3, 2008 IP
  11. arizona39

    arizona39 Well-Known Member

    Messages:
    622
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #11
    I have a dynamic IP

    I have xampp

    i created two hosts in np-ip.com and put my IP in it and then i took the hostname, tindora.myvnc.com and set as my dns server

    what else do i need to do with apache?
     
    arizona39, Dec 3, 2008 IP