<?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 'headers'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=headers&amp;orTags=0</link><description>Search results matching tag 'headers'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS 6.0 host headers not working</title><link>http://forums.iis.net/p/1160572/1915551.aspx#1915551</link><pubDate>Wed, 02 Sep 2009 07:31:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915551</guid><dc:creator>PeterHaislund</dc:creator><cs:applicationKey>configuration__scripting--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I has just setup a new Server 2003 x64 and was moving my websites from an old server.&lt;br /&gt;On my new server IIS doesn&amp;#39;t seem to detect the host headers I have set on the websites. All calls go to the default website for some reason.&lt;br /&gt;&lt;br /&gt;I have 2 sites:&lt;br /&gt;&lt;br /&gt;Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Header&lt;br /&gt;Default site&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;sub.mydomain.com&amp;nbsp;&amp;nbsp;&amp;nbsp; sub.mydomain.com&lt;br /&gt;&lt;br /&gt;So when I open sub.mydomain.com in my browser it just goes to the default site??&lt;br /&gt;&lt;br /&gt;All dns entries should be set ok (I use one.com as dns server), so how do I debug this?&lt;br /&gt;How can I see if the dns server is removing the headers or what is going on?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Peter&lt;/p&gt;</description></item><item><title>Re: wildcard host header</title><link>http://forums.iis.net/p/1150524/1874581.aspx#1874581</link><pubDate>Mon, 21 Jul 2008 21:01:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874581</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Having read the other thread that you referenced, I think what you are trying to do is to configure several web sites like this:&lt;/p&gt;
&lt;p&gt;Website1&amp;nbsp;with host header binding as &amp;quot;*.example.com&amp;quot;&lt;br /&gt;Website2 with host header binding as &amp;quot;*.example.org&amp;quot;&lt;/p&gt;
&lt;p&gt;So that if request is for &lt;strong&gt;foo.example.com&lt;/strong&gt; then it goes to Website1 and request for &lt;strong&gt;foo.example.org&lt;/strong&gt; goes to Website2.&lt;/p&gt;
&lt;p&gt;If that&amp;#39;s what you are trying to do, then one theoretically&amp;nbsp;possible way to achieve that is to use URL rewrite module&amp;nbsp;together with ARR module to proxy the requests based on the host header For example,&amp;nbsp;create the following three web sites on the same server:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;ProxySite&lt;/strong&gt; with empty host header binding&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Website1&lt;/strong&gt; with host header binding as &amp;quot;example.com&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;strong&gt;Website2&lt;/strong&gt; with host header bidning as &amp;quot;example.org&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;On the &amp;quot;ProxySite&amp;quot; create a rewrite rule to proxy requests to other two web sites:&lt;/p&gt;
&lt;p&gt;&amp;lt;rule name=&amp;quot;Proxy by host&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;match url=&amp;quot;(.*)&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(?:[^.]*\.)?([^.]+\.[^.]+)$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;http://{C:1}/{R:1}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;This way, if request is made to &lt;a href="http://foo.example.com/default.aspx?bar=1"&gt;http://foo.example.com/default.aspx?bar=1&lt;/a&gt; then the&amp;nbsp;&lt;strong&gt;ProxySite&lt;/strong&gt; with empty host header binding will get it and then the rewrite rule will proxy the request to &lt;a href="http://example.com/default.aspx?bar=1"&gt;http://example.com/default.aspx?bar=1&lt;/a&gt;, which means that &lt;strong&gt;Website1&lt;/strong&gt; will get the request.&lt;/p&gt;
&lt;p&gt;Note that for this to work you need to install &lt;a class="" title="ARR Download" href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;i=1709&amp;amp;g=6"&gt;ARR module&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: wildcard host header</title><link>http://forums.iis.net/p/1150524/1874553.aspx#1874553</link><pubDate>Mon, 21 Jul 2008 16:34:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874553</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I think Ruslan will be out of office today, so I think what you need is something like:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;rule name=&amp;quot;Host example&amp;quot; patternSyntax=&amp;quot;Wildcard&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;*&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;&amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;*.example.com&amp;quot; /&amp;gt;&lt;br /&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;&lt;a href="http://www.live.com/"&gt;http://www.live.com&lt;/a&gt;&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error in documentation: HTTP_HOST server variable</title><link>http://forums.iis.net/p/1150388/1873943.aspx#1873943</link><pubDate>Mon, 14 Jul 2008 16:44:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873943</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Thanks cichanlx for pointin that out! You are correct, the HTTP_HOST does not contain protocol prefix, forward slashes and trailing slashes. I have corrected it in the article.&lt;/p&gt;</description></item><item><title>Re: Changing HTTP Header before rewrite module</title><link>http://forums.iis.net/p/1150208/1873176.aspx#1873176</link><pubDate>Thu, 03 Jul 2008 19:13:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873176</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;The URL rewriting may happen at different stages in pipeline - it depends on what kind of rules are used.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Global rules (defined in &amp;lt;globalRules&amp;gt; collection)&amp;nbsp;are evaluated at OnGlobalPreBeginRequest&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Distributed rules (defined in &amp;lt;rules&amp;gt; collection)&amp;nbsp;are evaluated at BeginRequest&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;When using distributed rules, you can have a simple managed HTTP module hooked to OnGlobalPreBeginRequest event to set the HTTP headers before URL rewriting happens.&lt;/p&gt;
&lt;p&gt;I am curious about what is the scenario where one needs to alter HTTP headers before URL rewriting. Could you provide more details on that? Would it help if URL rewriter allowed you to set HTTP headers? &lt;/p&gt;</description></item><item><title>Re: FAST CGI + header not sended</title><link>http://forums.iis.net/p/1150034/1872729.aspx#1872729</link><pubDate>Fri, 27 Jun 2008 06:53:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1872729</guid><dc:creator>fred_klee</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Sorry for my last answer, I was just spending hours trying to any answer on this problem. And I didn&amp;#39;t found any.&lt;/p&gt;&lt;p&gt;So, I tested your example, first, I got an UNHAUTHORIZED, normal , I use &amp;quot;Integrated Windows authentification&amp;quot;.and&amp;nbsp; wget don&amp;#39;t send it. Anyway I went to IIS remove this authentification for tests. And miracle, I test just one URL who has a X-JSON. And got answer with X-JSON.&lt;/p&gt;&lt;p&gt;Finally, I think that there is a problem with&amp;nbsp; &amp;quot;Integrated Windows authentification&amp;quot; - FAST-CGI and PHP header ! Together.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope someone can find any answer quickly.&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: FAST CGI + header not sended</title><link>http://forums.iis.net/p/1150034/1872663.aspx#1872663</link><pubDate>Thu, 26 Jun 2008 13:17:02 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1872663</guid><dc:creator>fred_klee</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;That is not the question because, &lt;/p&gt;&lt;p&gt;it works well for with CGI and ISAPI..... but NOT with FastCGI.... I think so there is a problem with FASTCGI not my code, I can&amp;#39;t put all my header in first line of code... Just think your header is or isn&amp;#39;t X-JSON or Location and this arrive at line 100 of your code !&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;#39;cause I want to go with FastCGI, so I don&amp;#39;t want to rewrite 1000 lines of code !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Fred&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>FAST CGI + header not sended</title><link>http://forums.iis.net/p/1150034/1872383.aspx#1872383</link><pubDate>Mon, 23 Jun 2008 09:34:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1872383</guid><dc:creator>fred_klee</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I just went from CGI to FASTCGI with the new fastCGI handler and get some errors with some header :&lt;/p&gt;&lt;p&gt;I use this header &amp;quot;X-JSON&amp;quot; for web 2.0 issues with prototype,&lt;/p&gt;&lt;p&gt;example :&lt;/p&gt;&lt;p&gt;&lt;b&gt;header(&amp;#39;X-JSON : &lt;i&gt;A_JSON_STRING&lt;/i&gt; &amp;#39; ); &lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And this header disappears with PHP in fastCGI mode ?&lt;/p&gt;&lt;p&gt;There is another problem with all my &lt;/p&gt;&lt;p&gt;&lt;b&gt;header(&amp;quot;Location : &lt;i&gt;A_WELL_FORMATTED_URL&lt;/i&gt;&amp;quot;)&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Which are located in code, but no text is displayed before it. And with normal CGI it is fonctional and with ISAPI too.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Should I have to add something in FasCGI configuration or is there a BUG with fast cgi and Headers ?&lt;/p&gt;&lt;p&gt;I think that thereis a big problem with php headers with FastCGI module !? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance because whis this problem, I have to rewrite so much code !&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Website still able to access even stopped in IIS</title><link>http://forums.iis.net/p/1149131/1868498.aspx#1868498</link><pubDate>Wed, 30 Apr 2008 10:37:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1868498</guid><dc:creator>reachroger</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I have a Windows 2003 box hosting multiple websites using HTTP header. Just found a strange thing is if key in the external IP address of the server in IE, it will jump to one of my websites. &lt;/p&gt;
&lt;p&gt;And then, stop the website in IIS, use IP to access the server in IE, the website I just stopped still can be accessed. Only way to avoid the website to be accessed is to rename the default page name to make it cannot be found.&lt;/p&gt;
&lt;p&gt;Anyone has any idea?&lt;/p&gt;
&lt;p&gt;I wound why it would jump to that website, can I change it? &lt;/p&gt;</description></item><item><title>Re: Sometimes Bad Gateway 502 by running C++ Executable on IIS</title><link>http://forums.iis.net/p/1148703/1866671.aspx#1866671</link><pubDate>Thu, 03 Apr 2008 19:45:10 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1866671</guid><dc:creator>monoid</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi together, &lt;/p&gt;
&lt;p&gt;and thank you for your answers.&lt;/p&gt;
&lt;p&gt;@ma_khan: The memory consumption is always 5.000 K for w3wp.exe&amp;nbsp;at the Task Manager.&amp;nbsp;&amp;quot;Bad Gateway 502&amp;quot; occurs sometimes, not every time and there is no consistent fault. I have tested with two similar messages and sent it via post to the C++ executable. The first message fails (RC: 502), the second works fine (RC: 200)!&lt;/p&gt;
&lt;p&gt;@anil_r: I have Windows 2003 Server SP 1 (multi-processor) and IIS 6.0 installed. It is not allowed to install Windows Vista on this machine. &lt;/p&gt;
&lt;p&gt;I have found a hotfix for IIS &lt;/p&gt;
&lt;p&gt;&lt;a href="http://support.microsoft.com/kb/884764/en-us"&gt;http://support.microsoft.com/kb/884764/en-us&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Does anyone have experience with this?&lt;/p&gt;
&lt;p&gt;Thank you for your help! &lt;/p&gt;
&lt;p&gt;mono&lt;/p&gt;</description></item></channel></rss>