setting up a DNS for multi website?

Posted on 2005-05-10
Last Modified: 2010-03-18
I have been hosting my website for some time but now I have been approached to host another site for a local company. What I currently have is:
Server running windows 2000 server
Apache web server
Active directory
Website running with a .tk address

Currently with only the one website I have just redirected port 80 to the computer hosing the site from the router but I am wanting to set-up a virtual host or even host on a separate computer.

The problem with this is I don’t know what all I would ports I need to redirect and to which computer. Should I redirect the ports to the DNS server which should sort of act as a proxy or what. Also when using virtual hosts do I need to register a second domain on the AD.

I know very little to do with DNS server so any help would be grateful and would probably be best to explain in dummy terms :)

Question by:crsmcb
    LVL 16

    Expert Comment

    first off, you have to use port 80 for both sites, unless every client knows which port # you pick to use. next, DNS is only for looking up addresses, it won't do any proxying of anything, lastly, AD is not related to this at all, and doesn't have anything to do with your Apache server.

    So...there's two way to do a virtual host:
    either the virtual host can have a second IP address, or, it can share an IP address, and just use the name to distinguish it.

    Question: do you have more than one 'public' IP address at your disposal? ie. did your ISP give you more than one address?

    If not, then the second option is your only option. You'll need to add a new record into the public DNS zone for the website you're hosting, which points to the public IP address of your router. This means that and both go to your router. Your router will then forward the requests to port 80 on your Apache server.
    In the apache httpd.conf, you need to configure a 'name-based virtual host' for the new server. Here's a link:

    basically, you need to select a directory for the content, and then create a virtual host setting that references that name in the .conf file...

    post back as you go along!


    Author Comment

    i think i may have set-up a computer with a virtual host but have found that with my address it only masks an address insted of a achual domain name so i have been unable to test the server. the only other thing i was wanting to know is there anyway to use 2 separate computers to host caseu the only problem the router can only direct any one port to 1 computer. is there any way to setup a local dns which would direct request to each computer or would this pose a large security isue

    i am gong to be purchasing a proper domain in the near future so may not find out if the firtual hsot works for a while

    LVL 16

    Accepted Solution

    It is possible to have 2 internal servers, but I don't know if you have the right setup...

    you would need to have 2 external 'public' ip addresses to use. In the public DNS, point one website to one address, and the other to the other address. Then, on your firewall, you would need to be able to create 2 rules to port-forward requests to the 2 different internal servers. depends on first having 2 public addresses to use, and second you need to have a firewall that will allow you to create the rules.

    Author Comment

    thank you

    with my current setup i am unable to configure it the way i want so i will jsut have to wait till i have enough resources to take on such a task

    thank you again


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
    Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now