IIS 6 - configuring for sub-domains
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: IIS 6 - configuring for sub-domains
IIS 6 - configuring for sub-domains
07-05-2017 10:51 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
so i've set up a windows 2003 server at home for testing and playing about.
i had a similar set many years ago, and my memory is a little vague now.
i have a domain which is pointing to the server, all ok so far.
i have set up 2 sub domains, and they are also correctly pointing to the server.
in IIS do i leave the default website "as is"? ie leave the host header value as blank?
then create 2 new "sites" in IIS (one for each sub domain) and set the host header value in each as the FQDN?
so it would be....
default web site - for www.blah.com (or blah.com) - host header left as blank
sub1 - for sub1.blah.com - host header set to "sub1.blah.com"
sub2 - for sub2.blah,com - host header set to "sub2.blah.com"
reason i ask is that i've set it up like that, and the two sub domains work fine, but when i try to go to the main domain i get Bad Request (Invalid Hostname)
Re: IIS 6 - configuring for sub-domains
07-05-2017 11:18 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Have you created a host entry for it?
Re: IIS 6 - configuring for sub-domains
07-05-2017 11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
these are public URL's, no need for a local host file if that's what you mean.
the two sub-domains load fine, externally and internally.
Re: IIS 6 - configuring for sub-domains
07-05-2017 12:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I guess that would be the same place you used for the sub-domains. If you go to sub1.blah.com and to sub2.blah.com you must have created DNS entries for these somewhere, no?
Re: IIS 6 - configuring for sub-domains
07-05-2017 12:07 PM - edited 07-05-2017 12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
the A records are already set up via the domain registrar.
this is an IIS config issue, as the "bad request" error is coming from IIS
Re: IIS 6 - configuring for sub-domains
07-05-2017 12:29 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This link may be of interest to you then.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: IIS 6 - configuring for sub-domains