• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

setting up a DNS for multi website?

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 :)

crsmcb
0
crsmcb
Asked:
crsmcb
  • 2
  • 2
1 Solution
 
JammyPakCommented:
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 www.domain1.com and www.domain2.com 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:
http://httpd.apache.org/docs/vhosts/name-based.html

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!

HTH
0
 
crsmcbAuthor Commented:
i think i may have set-up a computer with a virtual host but have found that with my dot.tk 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

crsmcb
0
 
JammyPakCommented:
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.

So...it 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.
0
 
crsmcbAuthor Commented:
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

crsmcb
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now