<?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 header'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=host+header&amp;orTags=0</link><description>Search results matching tag 'host header'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>How to remove IIS version name from the http header</title><link>http://forums.iis.net/p/1162397/1923627.aspx#1923627</link><pubDate>Fri, 06 Nov 2009 06:21:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923627</guid><dc:creator>sunitha4ever</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My web application runs on Windows server 2008 and IIS7.Currently, we are facing a security issue where in we need to reove the IIS version from the http header.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I would be glad if someone can help me out on this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards,&lt;/p&gt;
&lt;p&gt;Sunitha&lt;/p&gt;</description></item><item><title>ARR or URL Rewrite via Hosted headers</title><link>http://forums.iis.net/p/1161163/1918124.aspx#1918124</link><pubDate>Thu, 24 Sep 2009 14:10:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918124</guid><dc:creator>TJJones</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I want to use the ARR or URL Rewrite to route based on Hosted headers.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;site1.domain.com&amp;nbsp; &amp;gt; 10.10.10.1 server&lt;/p&gt;
&lt;p&gt;site2.domain.com&amp;nbsp; &amp;gt; 10.10.10.2 server&lt;/p&gt;
&lt;p&gt;site3.domain2.com &amp;gt; 10.10.10.1 server&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t seem to find a simple way to set this up. Any assistance would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;TJ&lt;/p&gt;</description></item><item><title>DNS to point to intranet application (multiple sites on IIS server)</title><link>http://forums.iis.net/p/1160548/1915436.aspx#1915436</link><pubDate>Tue, 01 Sep 2009 14:57:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915436</guid><dc:creator>dhassen</dc:creator><cs:applicationKey>iis7_-_setup__migration-41</cs:applicationKey><description>&lt;p&gt;Hi everyone. We&amp;#39;re recently moved all our servers over to Server 2008, so great, I can play with IIS 7.&amp;nbsp;&lt;/p&gt;&lt;p&gt;We have 2 intranet sites, and I&amp;#39;ve set up a host header record for the second site called ams.&amp;nbsp;&lt;/p&gt;&lt;p&gt;We used to have internal DNS servers point &amp;#39;ams&amp;#39; to the IP of the webserver, which uses the host header to point to the web app.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve recreated all this again now we&amp;#39;ve switched over our servers but when you ping or type in ams into a browser it doesn&amp;#39;t work. ping ams gives: could not find the host please check and try again, and in a browser (depending on browser) I just get redirected to a google search results page for ams. Very confusing for my users. &lt;/p&gt;&lt;p&gt;I can&amp;#39;t &amp;#39;browse&amp;#39; the site either, via IIS manager.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Has anyone got any ideas how I can fix this&amp;nbsp; / what&amp;#39;s gone wrong / how I can trouble shoot this?&lt;/p&gt;&lt;p&gt;The &amp;#39;Default&amp;#39; intranet site works fine with internal and external DNS, using a totally different domain name. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Removing HTTPS binding on one site breaks all sites</title><link>http://forums.iis.net/p/1159517/1911371.aspx#1911371</link><pubDate>Thu, 23 Jul 2009 23:10:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911371</guid><dc:creator>dtatgenho</dc:creator><cs:applicationKey>iis7_-_security--1</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I was reading &lt;a href="http://forums.iis.net/t/1149714.aspx" target="_blank"&gt;this post&lt;/a&gt; earlier, as we are running into this issue too (SSL using a wildcart cert on multiple subdomain websites).&lt;/p&gt;&lt;p&gt;In anilr&amp;#39;s reply (2nd post of the thread), he says: &amp;quot;removing the bindings in the UI will remove both those things which
will of course make your other sites non-functional - you need to
remove just the binding in applicationhost.config using other means
like appcmd/editing in notepad etc.&amp;quot;&lt;/p&gt;&lt;p&gt;So,
in other words, removing the SSL cert binding of one site (via the UI)
will break the SSL bindings of ALL of the other sites.&amp;nbsp; This seems like
a huge problem/limitation of the UI, especially since this can be done
properly (as anilr also states) by editing the applicationhost.config
file (either manually or programmatically).&lt;/p&gt;&lt;p&gt;This, frankly, seems
like a bug, as this behavior is not expected nor implied by the user&amp;#39;s
action (by editing a single site, you break all of them).&amp;nbsp; Is this
fixed in Server 2008 R2 or by a future service pack/hotfix?&lt;/p&gt;&lt;p&gt;The
reason I ask is because we are testing out a hosted environment like
this (wildcard SSL cert (*.mysite.com), single IP, bound to many
subdomain sites via host headers (site1.mysite.com, site2.mysite.com,
etc.)) and having the &amp;quot;touch one binding, break them all&amp;quot; issue with
the UI just makes things way too easy to screw up.&lt;/p&gt;&lt;p&gt;Anyone know if this will be fixed or if there is something I am missing? &lt;/p&gt;</description></item><item><title>Re: Wildcard host header support</title><link>http://forums.iis.net/p/1095760/1909758.aspx#1909758</link><pubDate>Thu, 09 Jul 2009 16:06:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909758</guid><dc:creator>AJStevens</dc:creator><cs:applicationKey>iis7_-_configuration__scripting-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve read about this online, as I want to do a simliar thing.&lt;/p&gt;
&lt;p&gt;The problem with the &amp;quot;IP&amp;quot; solution is it will only work for one site, on one IIS install, AND someone could register a dodgy domain name and point it to your IP and they&amp;#39;d get your website.&lt;/p&gt;
&lt;p&gt;What I have come up with (and waiting on the tests to confirm) is a workaround using ISAPI_Rewrite (which I suspect some of you are using anyway and have a .htaccess file with rules).&lt;/p&gt;
&lt;p&gt;Now, my solution is to put a .htaccess file in the root folder of the Default website, something like (might need some tweaking):&lt;/p&gt;
&lt;p&gt;RewriteEngine on&lt;/p&gt;
&lt;p&gt;RewriteCond %{HTTPS} (on)?&lt;br /&gt;RewriteCond %{HTTP_HOST} ^(?!(?:www))([^.]+)\.([^.]+\.[^.]+)$ [NC]&lt;br /&gt;RewriteRule ^([^.]+)?$ http(?%1s)://www.%3/(?1$1) [NC,P,QSA]&lt;/p&gt;
&lt;p&gt;Now, not forgetting your * DNS A record. What will happen is a user goes to whatever.mydomain.com and it will go to the IIS server, fail to find a match Host Header wise and will instead return the default website (&amp;quot;Under Construction&amp;quot; page), except with that .htaccess file and ISAPI-Rewrite it won&amp;#39;t display the &amp;quot;Under Construction&amp;quot; page, as it will run this rule in the .htaccess file and instead pull in the equivalent from &lt;a href="http://www.mydomain.com/"&gt;www.mydomain.com&lt;/a&gt; where more than likely you will have your actual .htaccess file in the root of your www website and where now you can not only specify rules for your &lt;a href="http://www.domain.com/"&gt;www.domain.com&lt;/a&gt; but anything.yourdomain.com&lt;/p&gt;
&lt;p&gt;Most commonly you&amp;#39;ll want something that does &lt;a href="http://username.mydomain.com/"&gt;http://username.mydomain.com&lt;/a&gt; to pull in data from &lt;a href="http://www.mydomain.com/users.php?user=username"&gt;www.mydomain.com/users.php?user=username&lt;/a&gt; for example.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t have a .htaccess file with rules, then you&amp;#39;ll just get your &lt;a href="http://www.mydomain.com/"&gt;www.mydomain.com&lt;/a&gt; website but as subdomain.mydomain.com instead.&lt;/p&gt;
&lt;p&gt;Of course if you own the server (VPS or dedicated) you can tweak this &amp;quot;main&amp;quot; rule even more, but that was a generic one I hope shared hosting IIS companies could incorporate. Perhaps with a tagline of &amp;quot;Dynamic Subdomains&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: IIS &amp;amp; URL-REWRITE</title><link>http://forums.iis.net/p/1158253/1906205.aspx#1906205</link><pubDate>Mon, 08 Jun 2009 17:16:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906205</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;If you want your web site to be accessible via bcdcon.com and then redirect to www.bcdcon.com, then you will need to add two host header bindings for that web site in iis: one for &amp;quot;bcdcon.com&amp;quot; and one for www.bcdcon.com.&lt;/p&gt;</description></item><item><title>Re: regular expression to check for www</title><link>http://forums.iis.net/p/1157582/1903877.aspx#1903877</link><pubDate>Fri, 15 May 2009 15:51:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903877</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&amp;lt;rule name=&amp;quot;WWW&amp;quot; enabled=&amp;quot;true&amp;quot; stopProcessing=&amp;quot;true&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;^www&amp;quot; negate=”true” /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;http://www.{HTTP_HOST}/{R:1}&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>IIS6 to IIS7 migration</title><link>http://forums.iis.net/p/1157640/1903710.aspx#1903710</link><pubDate>Thu, 14 May 2009 08:08:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903710</guid><dc:creator>notcon</dc:creator><cs:applicationKey>web_deployment_tool_wdeploy-39</cs:applicationKey><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;We have all our sites on a 2003 server running IIS6.&lt;/p&gt;&lt;p&gt;&amp;nbsp;We wish to migrate all these sites (including app pools, user accounts, ftp details but NOT content to our new 2008 server running iis7 and ftp7.5.&amp;nbsp; Thje content will be migrated first separately.&amp;nbsp; We also wish to replace all IP addresses with a new one.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;We wish to do this via the archive/package method. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have tested the deploy tool and can migrate basic site definitions but app pools, users and ftp accounts don&amp;#39;t seem to migrate at all.&lt;/p&gt;&lt;p&gt;Please&amp;nbsp; can someone advise as to what commands we need to use.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;Nathan &lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS doesnt like 2 sites on port 80 here</title><link>http://forums.iis.net/p/1157593/1903545.aspx#1903545</link><pubDate>Wed, 13 May 2009 08:46:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903545</guid><dc:creator>joeri87</dc:creator><cs:applicationKey>general--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hello,&lt;br /&gt;&lt;br /&gt;We are trying to set 2 website to port 80 in IIS (webmail and sharepoint). The webmail site is working but when we try to change the sharepoint link to 80 and put in a different host header the site won’t start. Using port 8080 it does start, but it’s not what we want.&lt;br /&gt;Same goes if we switch it, 1 site on port 80 always works but when we try to start the 2nd one IIS says there already is a site on port 80 and doest start it.&lt;br /&gt;They do have different host headers. &lt;br /&gt;&lt;br /&gt;Is there any common problem that can cause this?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;Joeri&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Seek Professional Help!!!</title><link>http://forums.iis.net/p/1157528/1903328.aspx#1903328</link><pubDate>Mon, 11 May 2009 13:30:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903328</guid><dc:creator>goldentine</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I need professional help here...&amp;nbsp;Here&amp;#39;s the situation... I have product URL&amp;#39;s&amp;nbsp;going to detail pages.&amp;nbsp; On that page it breaks out into sub-sections, at times it also carries extra parameters in the query string other than &amp;quot;v&amp;quot; and &amp;quot;fa&amp;quot;...&amp;nbsp;note that &amp;quot;v&amp;quot; is an alpha-numeric product ID, and &amp;quot;fa&amp;quot;&amp;nbsp;is the sub-section&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;res/stat.cfm?v=id (default page)&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=graphs&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=comments&lt;/li&gt;
&lt;li&gt;res/stat.cfm?v=id&amp;amp;fa=whatever&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;I&amp;#39;m looking to create rule(s) like the following:&lt;/strong&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;alphanumericID&lt;/li&gt;
&lt;li&gt;alphanumericID/graphs&lt;/li&gt;
&lt;li&gt;alphanumericID/comments&lt;/li&gt;
&lt;li&gt;alphanumericID/whatever&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I&amp;#39;m thinking the second parameter&amp;nbsp;after the ID needs to be written as some kind of wildcard so that it will work&amp;nbsp;in any of the above examples??&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I&amp;#39;m also looking for these rule requirements:&lt;/strong&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;no&amp;nbsp;hardcoded&amp;nbsp;rule values&amp;nbsp;(ex: graphs, comments, etc) as they get changed at times.&lt;/li&gt;
&lt;li&gt;make sure the alphanumericID is just that (regex A-Z 0-9), if not, skip rule&lt;/li&gt;
&lt;li&gt;direct access to&amp;nbsp;&amp;quot;res/stat.cfm&amp;quot; forces a&amp;nbsp;&amp;quot;url has moved&amp;quot; host headers then&amp;nbsp;redirects to the rewritten version.&lt;/li&gt;
&lt;li&gt;It would also be nice to be able to access the &amp;quot;res/stat.cfm&amp;quot; directly for testing and development purposes and&amp;nbsp;bypass the redirect... (ex:&amp;nbsp;res/stat.cfm?id=abc123&amp;amp;bypass=1)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Here&amp;#39;s what I have so far which is not flexible and error prone.....&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pattern:&lt;/strong&gt;&amp;nbsp;^([^/]+)/?$&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rewrite URL:&lt;/strong&gt; res/stat.cfm?v={R:1}&lt;/p&gt;
&lt;p&gt;Clearly this doesn&amp;#39;t do what I need it to do and far from flexible... I&amp;#39;ve been banging my head against the wall trying different things with minimal success.&amp;nbsp;I know there&amp;#39;s someone out there that could probably write this up in 2 minutes!&lt;/p&gt;
&lt;p&gt;I&amp;#39;d greatly appreciate the help!&amp;nbsp; Thanks big time&amp;nbsp;in advance!&lt;/p&gt;
&lt;p&gt;By the&amp;nbsp;way, the site in question is... &lt;a href="http://www.cbengine.com/"&gt;http://www.cbengine.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>