search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
IIS GroupsView
Frontpage Client
Frontpage Extensions Windowsnt
Frontpage Programming
Inetserver Asp Db
Inetserver Asp General
Inetserver Iis
Inetserver Iis Security

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Inetserver Iis Posts  Ask A New Question 

URL to test host headers - LilyCollin

Monday, March 03, 2008 4:18 PM

I am trying to implement host headers in a series of web sites on IIS 6.0.  I
haven't yet set up DNS entries (I believe I do this by specifying the IP
address and the relevant host header name).  But I just wanted to test the
host headers were working.

I have tried using a URL in the format http://hostname:80:hostheadername
from another computer on the network but I get an error of Windows cannot
find 'http://hostname:80:hostheadername'. Check the spelling and try again.

If I try the URL http://localhost:80:hostheadername from the web server I
get the following error: The page cannot be displayed
The page you are looking for might have been removed or had its name changed.

Can I not check the host headers in this way?  Do I need to create a DNS
entry or make a manual change to the Hosts file to test the host headers?

Thank you.
reply
 

It's a good idea to modify the hosts file in order to test host header but to - Lognoul, Marc \(Private\)

Tuesday, March 04, 2008 1:04 AM

It's a good idea to modify the hosts file in order to test host header but
to test it via the browser, you have to enter the hostheader itself, like:
http://myhost1.dom.net
http://myhost2.dom.net
...
In your host file, all hosts will point to the same IP.

Marc
reply

Yes, you must configure a DNS server or edit the hosts file. - Kristofer Gafvert

Tuesday, March 04, 2008 1:09 AM

Yes, you must configure a DNS server or edit the hosts file. No browser i
know of let you do this. If you use a tool such as WFetch you can manually
add a host header, but i see no reason why you want to do this. After all,
you need DNS working in the end, so why not configure it immediately?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
reply

To be honest the main reason for trying the host headers before configuring - LilyCollin

Tuesday, March 04, 2008 11:00 AM

To be honest the main reason for trying the host headers before configuring
the DNS is that this entails, quite rightly, a whole change control process
as I am not the person who does the DNS entries.

So I wanted to try to test before initiating the change control just to make
sure I had set everything up correctly.

Thank you for your response and confirming what I need to do.
reply

Thank you for your response and clarification, I am going to update the host - LilyCollin

Tuesday, March 04, 2008 11:05 AM

Thank you for your response and clarification, I am going to update the host
file as a first test and then get a DNS entry created.
reply

This article (and referenced articles) may be interesting to read for a deeper - Kristofer Gafvert

Tuesday, March 04, 2008 12:49 PM

This article (and referenced articles) may be interesting to read for a
deeper understanding:

http://www.gafvert.info/iis/article/hosts_file_host_headers.htm

Good luck!

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
reply
 
 

Previous Microsoft Inetserver Iis conversation.