<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'host headers'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=host+headers&amp;orTags=0</link><description>Search results matching tag 'host headers'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>virtual directory name and URL path conflict causes malformed hyperlinks in aspx pages</title><link>http://forums.iis.net/p/1162449/1923847.aspx#1923847</link><pubDate>Mon, 09 Nov 2009 03:53:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923847</guid><dc:creator>Max Ainscough</dc:creator><cs:applicationKey>troubleshooting--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I (through supporting a client) have discovered an issue where hyperlinks / script urls are malformed when any string occurs as both part of the base URL as well as a virtual directory name e.g. &amp;quot;http://trythis.microsoft.com/trythis/myapp.aspx&amp;quot;&amp;nbsp; Has anyone else come across this issue, and is there a known resolution?&lt;/p&gt;&lt;p&gt;To replicate the errors, I did the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Created a new virtual directory to our (working) web app named &amp;#39;trythis&amp;#39;&lt;/li&gt;&lt;li&gt;Created a new host header name &amp;#39;trythis.microsoft.com&amp;#39; against the website using the same defaults as localhost&lt;/li&gt;&lt;li&gt;modified my hosts file to add reference to &amp;#39;trythis.microsoft.com&amp;#39; IP 127.0.0.1&lt;/li&gt;&lt;li&gt;restarted IIS&lt;/li&gt;&lt;li&gt;pinged &amp;#39;trythis.microsoft.com&amp;#39; successfully&lt;/li&gt;&lt;li&gt;navigated to &amp;#39;http://localhost/&amp;lt;application&amp;gt;.aspx&amp;#39; successfully with all elements working correctly.&lt;/li&gt;&lt;li&gt;replaced &amp;#39;localhost&amp;#39; with &amp;#39;trythis.microsoft.com&amp;#39; - with the page appearing but no images,links,scripts etc. being formed correctly.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I have been able to replicate this on both 5.1 (xp) and 6.0 (Svr 2003)&lt;/p&gt;&lt;p&gt;Any help on this would be greatly appreciated.&lt;/p&gt;&lt;p&gt;Max &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Setting Content-disposition to force download prompt</title><link>http://forums.iis.net/p/1162386/1923570.aspx#1923570</link><pubDate>Thu, 05 Nov 2009 22:09:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923570</guid><dc:creator>smithd</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;I have a simple site setup with virtual directories pointing to Document directories in order to publish documents.&amp;nbsp; What I would like to do is to ensure that any of the files that are accessed, do not try to load in their native format, but instead prompt the user to open or save the file.&amp;nbsp; I have tried adding a custom HTTP response header (from the UI), but must have the syntax wrong, because it isn&amp;#39;t working.&amp;nbsp; Even if the header did work, I can&amp;#39;t add a custom header for every single file that is published, as they will change often and there will be many.&amp;nbsp; So I need to know how to do this dynamically as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I tried adding the header using the following syntax:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;content-disposition: attachment; filename=test.txt&lt;/p&gt;
&lt;p&gt;Just to be thorough, I should add that I&amp;nbsp;have removed the execute permissions, in order to keep things like .exes from trying to run instead of download.&lt;/p&gt;</description></item><item><title>Host Header Routing - (NOT HOSTING MULTIPLE SITES ON ONE IIS SERVER)</title><link>http://forums.iis.net/p/1162335/1923358.aspx#1923358</link><pubDate>Wed, 04 Nov 2009 14:34:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923358</guid><dc:creator>DubOhio</dc:creator><cs:applicationKey>iis7_-_publishing-41</cs:applicationKey><description>&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Here is a quick rundown of what I have and what I’m trying to do.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Server1: 192.168.2.2&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Server2: 192.168.2.3&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Router:&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Internal IP: 192.168.2.1&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;External IP: 74.1.1.1&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Website1: &lt;/font&gt;&lt;a href="http://www.yo.com/"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;www.yo.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Website2: &lt;/font&gt;&lt;a href="http://www.yo2.com/"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;www.yo2.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;Is there any hardware/software out there that can route host headers to &lt;u&gt;physically&lt;/u&gt; different IIS server or is there a way to setup front end with multiple backend IIS Servers like exchange?&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;a href="http://www.yo.com---%3e74.1.1.1---%3e192.168.2.2/"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;www.yo.com---&amp;gt;74.1.1.1---&amp;gt;192.168.2.2&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;a href="http://www.yo.com---%3e74.1.1.1---%3e192.168.2.3/"&gt;&lt;font color="#0000ff" size="3" face="Calibri"&gt;www.yo.com---&amp;gt;74.1.1.1---&amp;gt;192.168.2.3&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3" face="Calibri"&gt;This is what I’m trying to accomplish.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I don’t want something shady like hosting a website on a different port.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;How does a webhosting company accomplish this?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any help!&lt;/p&gt;</description></item><item><title>IIS 6 Host headers not matching from local host</title><link>http://forums.iis.net/p/1161058/1917648.aspx#1917648</link><pubDate>Mon, 21 Sep 2009 07:35:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917648</guid><dc:creator>scott_3</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;Hi,&amp;nbsp; I have two IIS 6 servers that are refusing to match the host headers of my sites when I browse from the local host.&amp;nbsp; Everything works fine from a remote machine but not if I browse the site from the machine itself.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve checked the DNS and everything is resolving correctly, and there are no host file entries.&lt;/p&gt;&lt;p&gt;It used to work fine and then we added a SSL redirect for the login page and now its fried (but only locally).&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Scott &lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS stops using host headers after a certain point of time.</title><link>http://forums.iis.net/p/1160652/1915877.aspx#1915877</link><pubDate>Fri, 04 Sep 2009 13:23:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915877</guid><dc:creator>theregit</dc:creator><cs:applicationKey>troubleshooting--1</cs:applicationKey><description>&lt;p&gt;I am having a very strange issue with IIS 6.0 and an ASP.NET application.&amp;nbsp; I have a development box that has 2 websites on it (Default and Developement) the default website is still the standard website that is installed with IIS and then I have a development site with a host header value with the hostname of the box.&amp;nbsp; The problem I am having is that access to the application works fine for quite a while (hours).&amp;nbsp; Then when left alone overnight IIS stops routing requests to the development site and routes them to the default web site.&amp;nbsp; If I restart IIS then app starts working again and the process repeats.&lt;/p&gt;
&lt;p&gt;I have tried just restarting the app pool this site is on (it is on a different app pool than the default site) and that doesn&amp;#39;t work.&amp;nbsp; Only a restart of IIS does the trick.&amp;nbsp; There are NO events in the event log and nothing in the HTTP logs to indicate any kind of a problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any ideas would be greatly appreciated, this is very frustrating.&lt;/p&gt;
&lt;p&gt;Also I have this same application running on another box under the same setup and it works fine.&amp;nbsp; This issue seems to be isolated to this box and this instance of IIS.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Setting up multiple lan websites using shortnames</title><link>http://forums.iis.net/p/1160537/1915409.aspx#1915409</link><pubDate>Tue, 01 Sep 2009 13:06:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915409</guid><dc:creator>pj1981</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;I am at a really frustrating point where I am trying to host 5 intranet sites on my IIS Win2003 Server that are able to be accessed from any PC on the lan by typing: http://production/ , http://staff/ , etc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I know there has to be a way to do it because my old workplace did it and they were hosting it on a Win2k3 Server through IIS... I just need little pointer in the right direction. I have been told it can be done by adding .local but would prefer to have a more streamlined and direct path such as http://production/&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any assistance would be greatly appreciated.&amp;nbsp; :-) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Host Headers SSL configuration with different IP address and same port 443</title><link>http://forums.iis.net/p/1159463/1911222.aspx#1911222</link><pubDate>Wed, 22 Jul 2009 17:48:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911222</guid><dc:creator>snaveen_333</dc:creator><cs:applicationKey>security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a requirement to configure two different sites on a single machine with OS Windows 2003 and IIS 6 using SSL. I have opted for Host Headers approach. For testing on my local machine, the machine is in a organization LAN which is DHCP enabled which provides the first ip address. I have installed Microsoft Loop Back Adapter for second ip address.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am able to access the sites individually on port 80 without SSL . Also, I am able to access and configure both sites individually on SSL on different IPs. But I am not able to configure both the sites with different Server Certificates&amp;nbsp;with different IPs and same port 443 together at a time. Can anybody please help?&lt;/p&gt;</description></item><item><title>how to have Servicehost() and IIS on same http port 80</title><link>http://forums.iis.net/p/1156474/1898813.aspx#1898813</link><pubDate>Tue, 31 Mar 2009 15:49:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1898813</guid><dc:creator>Dirkie</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a self hosted webservice http://localhost/services/selfhostedservice?wsdl on http port 80 but when i run it on win2003 or Vista IIS which is also on port 80, IIS gets inaccessible.&lt;/p&gt;&lt;p&gt; If i open http://localhost in the browser i get &amp;#39;Endpoint not found&amp;#39;. The service works fine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;From what i read on MSDN both should be handled by http.sys and this should work.&lt;/p&gt;&lt;p&gt;Quote: &amp;quot;But because WCF and IIS 6.0 both use the kernel-mode HTTP stack
(HTTP.sys), IIS 6.0 can share port 80 with other self-hosted WCF
services running on the same machine, unlike IIS 5.1.&amp;quot; (Source: http://msdn.microsoft.com/en-us/library/ms730158.aspx)&lt;/p&gt;&lt;p&gt;From what i understand from the docs. this should work strait from the box without any configuration. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;So i am obviously doing something wrong... &lt;/p&gt;&lt;p&gt;Anybody any idea.. &lt;/p&gt;&lt;p&gt;TIA&lt;/p&gt;&lt;p&gt;Dirk &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to set charset in IIS7.0?</title><link>http://forums.iis.net/p/1155439/1894185.aspx#1894185</link><pubDate>Fri, 20 Feb 2009 14:08:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1894185</guid><dc:creator>neha.noma</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;Hi Team,&lt;/p&gt;&lt;p&gt;I want to change the Content-Type header to include charset info on IIS 7.0.&lt;/p&gt;&lt;p&gt;By default I get the ==&amp;gt; Content-Type: text/html&lt;/p&gt;&lt;p&gt;It does not include the charset information, even though in my page I have below tag set:&lt;/p&gt;&lt;p&gt;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;Please let me know how to override Web Server&amp;#39;s default setting.&lt;/p&gt;&lt;p&gt;I tried adding custom HTTP Response header for Content-type: image/jpeg;charset=UTF-8&lt;/p&gt;&lt;p&gt;Now I receive header like this in response==&amp;gt; &lt;/p&gt;&lt;p&gt;Content-Type: content=text/html,image/jpeg; charset=UTF-8&lt;/p&gt;&lt;p&gt;This way it appends my HTTP Response Header setting to the default set. But now the page does not get render instead it asks for downloading the file.&lt;/p&gt;&lt;p&gt;Am I missing something? Please guide. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Neha &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to find Content-Type in IIS Filter module?</title><link>http://forums.iis.net/p/1155379/1893865.aspx#1893865</link><pubDate>Wed, 18 Feb 2009 15:20:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893865</guid><dc:creator>neha.noma</dc:creator><cs:applicationKey>iis7_-_general--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have one doubt regarding the Character-Set. I have written one small IIS filter module to fetch the name from query string and display it through our filter. However there is a problem as the characters in query string can be in different character-sets so I need to decode it keeping the Character set in mind. Till here the logic looks fine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now the actual problem starts here is that the HTTP Request does not have &amp;quot;Content-Type&amp;quot; header. How can I find the Content-Type of the requested page? &lt;/p&gt;&lt;p&gt;Is there a way to find the default Content-type header defined for Virtual Web Server.&amp;nbsp; &lt;/p&gt;&lt;p&gt;As far as my understanding, the IIS will add the response header once it starts rendering the page. And if the page does not have tag&amp;lt;meta htt-equiv=&amp;quot;Content-Type&amp;quot; content .. &amp;gt;, it will set the &amp;quot;Content-Type&amp;quot; header to Default.&lt;/p&gt;&lt;p&gt;In my case our filter intercepts the request, so no rendering has started yet. Please let me know how to find the &amp;quot;Content-Type&amp;quot; for partially/not processed web pages from filter.&lt;/p&gt;&lt;p&gt;Am I looking at wrong header, please correct me.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Neha &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>