Author |
Topic |
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 17 September 2003 : 09:53:39
|
How do I set up subdomains in IIS? Did a quick search on google but found only docs of no interest.. as usual =)
|
/Tribaliztic - www.gotlandrace.se -
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 September 2003 : 10:27:38
|
Right Click on the web site in IIS and select Properties. Next to the IP Address on the Web Site tab, click on the Advanced Tab. Edit the host header and add additional entries for the subdomain names you want.
|
|
Edited by - dayve on 17 September 2003 10:28:32 |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 17 September 2003 : 11:29:18
|
It depends on whether you want your subdomain to have it's own website and root foder associated with it, technically the above is what IIS calls an "Identity" (most people just call them aliases).
A subdomain would normally be a completely new IIS website to give it it's own root folder etc. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 September 2003 : 12:59:46
|
Gremlin, you are 100% correct. I'd also like to add since we are getting into detail that normally when you create additional web sites and you don't assign a Host Header, you will not be able to share port 80. When creating a new website, you must add a host header in order to take advantage of using the default port 80. This process is extemely easy to do and can be done when creating the new website. |
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 17 September 2003 : 13:12:46
|
quote:
you don't assign a Host Header, you will not be able to share port 80.
Even more importantly, without a host header IIS will be extremely vunerable to DOS attacks and hacking attempts. |
|
|
ajhvdb
Junior Member
Netherlands
392 Posts |
Posted - 17 September 2003 : 14:51:23
|
Huwr, Why? Do you have more info.. |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 17 September 2003 : 15:02:26
|
Hm.. when I add a subdomain as you explained above I still end up on the same site. I would like to have forum.site.com to point to wwwroot\forum and site.com to point to wwwroot |
/Tribaliztic - www.gotlandrace.se -
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 17 September 2003 : 17:08:24
|
quote: Originally posted by tribaliztic
Hm.. when I add a subdomain as you explained above I still end up on the same site. I would like to have forum.site.com to point to wwwroot\forum and site.com to point to wwwroot
where did you add the entry for forum.site.com? In the Default Web Site? If so, remove that Host Header entry and then create a new web site. During the process you will see that you are asked for a path and then a host header. Fill in the path you want and the host header and keep the port 80. when you are done you should be able to use the new subdomain to the directory you specified when creating a new web site.
btw, you can only create multiple web sites with Windows Server Family. Windows XP Professional will not support multiple web sites. |
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 17 September 2003 : 19:31:25
|
You only have one website on XP Pro/W2K Pro.
Subdomains are typically separate web applications under an existing web site. Host headers typically divert incoming traffic to different web sites.
You use the IIS service manager to turn a folder under a web site to a new web application. Easier is to create a new web under the root of a web using a tool like frontpage or interdev.
Using frontpage 2000, for example, choose New - Web from the file menu, and give a folder name as part of the web, like www.<mysite>.com/mynewsubweb
Or create such a folder and use IIS service manager, properties, and click the Create button in the Application settings area.
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 18 September 2003 : 02:56:07
|
Okay, then I think I will get it to work.. I'm running win2k server so it would be no problem I think.. Thanks for your help! I'll get back to you if it won't work =) |
/Tribaliztic - www.gotlandrace.se -
|
|
|
|
Topic |
|