URL to test host headers - LilyCollin

03-Mar-08 04:18:01
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
 
 

URL to test host headers - Lognoul, Marc \(Private\)

04-Mar-08 01:04:02
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
 

URL to test host headers - Kristofer Gafvert

04-Mar-08 01:09:09
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
 

URL to test host headers - LilyCollin

04-Mar-08 11:00:02
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
 

URL to test host headers - LilyCollin

04-Mar-08 11:05:00
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
 

URL to test host headers - Kristofer Gafvert

04-Mar-08 12:49:12
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
 
Force IIS to stop Caching pages
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class