Windows Thread, DNS in Technical; This is what I want to do:
Create a DNS entry but rather than specify the IP Address of the ...
25th May 2007, 08:49 AM #1
This is what I want to do:
Create a DNS entry but rather than specify the IP Address of the server, I want to be able to specify the exact path for example:
WWW goes to SERVERIP\FOLDER1\FOLDER2\FILENAME.EXT
Does anyone know how to do this?
25th May 2007, 08:56 AM #2
- Rep Power
You could set the root of the website to be "SERVERIP\FOLDER1\FOLDER2\" although this would be a file path more like "C:\FOLDER1\FOLDER2\" then set the default index page to be filename.txt instead of index.html
25th May 2007, 08:59 AM #3
Yeah I understand that. But lets say I had 3 websites on one server.
I want www to point to the wwwroot\website1
I want vle to point to wwwroot\vle
and I want www2 to point to wwwroot\website2
ALL on the same server though.
Is this possible?
25th May 2007, 08:59 AM #4
Virtual server hostname. Are you using Apache?
25th May 2007, 09:01 AM #5
No, it's IIS on a 2003 box that I'm using....
25th May 2007, 10:11 AM #6
- Rep Power
I'm no experrt on DNS, but I gather what webman is still right on IIS. If you create a new site in IIS Manager and use the DNS to point to the ip address, I think IIS will sort out where the request goes.
29th May 2007, 02:45 PM #7
Ok, say that this is your scenario:
Your IIS server is called "server1" and your domain is "mydomain.com", you want to host three websites on it: "www.mydomain.com", "intranet.mydomain.com" and "extranet.mydomain.com".
Each site should be configured as a different website in IIS Manager (on server1: right click my computer -> manage -> services and applications -> internet information services (IIS) manager)
1) Right click on the first one (www)
2) in the "Web Site" tab, click Advanced
3) remove anything from the top list
4) click Add
5) Select the IP address to listen on (or select All if you only have one IP address)
6) Enter "80" for the port
7) Enter "www" for the host header value
8) Click OK
9) Click Add Again
10) select IP address as in (5)
11) Enter "80" for the port as in (6)
12) Enter "www.mydomain.com" for the host header value
13) Click OK, then OK again, and OK once more
14) on your DNS server, create a CNAME record pointing to the A record for server 1.
a) Open DNS Management (on your domain controller/DNS server: start -> run -> type "dnsmgmt.msc" -> press enter)
b) expand out the server
c) expand out forward lookup zones
d) right click "mydomain.com"
e) choose "New Alias (CNAME)"
f) type "www" in the alias name
g) type "server1.mydomain.com." in the "Fully qualified domain name...." box
h) press OK
i) make sure it has replicated, by doing a nslookup www.mydomain.com on another computer.
Repeat the process for the other websites.
Hope that helps
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)