I have an internal website and virtual directory http://server2012/logs. I created a CNAME on my DNS server as LOGS -> server2012. I would like to set it up so that http://LOGS redirects to http://server2012/logs. Ideally, I would still want it so that all pages appear in the browser as being off from the LOGS URL. So http://LOGS/network.html?site=32 is what is displayed in the browser, but it is really being served from http://server2012/logs/network.html?site=32. I've looked at URL rewrite, but can't seem to get to work.
|
|
||||
|
|
I'm not sure this is at all possible. The LOGS need to be its own virtual server. So essentially, set up a new virtual web server (if you're using Apache this is a breeze,) with it's root folder pointing to the same folder as this one does: in Then, set up your DNS (bind?) to aim the internal traffic from To tie it all up, simply make the new virtual web server respond to only I run this type of set up at my home office for developing client sites, and it's been running 20 or more sites at once for years without headaches. Bare in mind, the /logs/ folder will still be accessible through Edit: If it weren't clear already, this is obviously not a CNAME fix - you might as well us an A record. :) Hopefully that helps. |
|||
|
|
