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?
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
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?
Virtual server hostname. Are you using Apache?
No, it's IIS on a 2003 box that I'm using....
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.
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