homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Creating a sub domain using IIS

 5:31 pm on Jan 5, 2004 (gmt 0)

Is there a way of having a folder:


as a sub domain like:


Using Windows IIS 5.1?


Zaphod Beeblebrox

 12:12 am on Jan 6, 2004 (gmt 0)

I don't know about IIS, but using ASP you could simply use the Request.ServerVariables("SERVER_NAME") variable.

In your case, it would contain "pi.blah.com", so you could redirect to the appropriate subdirectory.


 12:50 am on Jan 6, 2004 (gmt 0)

asssuming your are runnning your dns and iis services:
first you need to create a dns entry (Host "A" record) for pi.blah.com which is an entry under the blah.com zone just like the www entry but may or may not point to the same ip

next you need to create a new website right click websites in iis choose new then website, but you need to specify a host header value for that website (pi.blah.com)

then go the website properties and edit settings under Home Directory to make content come from same or different directory used by www.blah.com/pi/ website

But, ifyou consider PR, you may wish use different content for different hosts, or use only www.example.com rather than
www.example.com and example.com

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved