<?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>General</title><link>http://forums.iis.net/1029.aspx</link><description>Start forum discussions here around general questions about the IIS platform including SMTP &amp; NNTP.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1859263.aspx</link><pubDate>Thu, 15 Nov 2007 09:39:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859263</guid><dc:creator>dvugteveen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859263.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1859263</wfw:commentRss><description>&lt;p&gt;Check out &lt;a href="http://blogs.msdn.com/joelo/archive/2007/01/02/relationship-between-the-iis-metabase-and-sharepoint-configuration-database.aspx"&gt;http://blogs.msdn.com/joelo/archive/2007/01/02/relationship-between-the-iis-metabase-and-sharepoint-configuration-database.aspx&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Key section: &amp;quot;You can use IP bindings but they aren&amp;#39;t exposed in the SharePoint web application creation UI, first go&amp;nbsp;into SharePoint to&amp;nbsp;extend the web application with a host header binding, then go into IIS Manager to remove the host header binding and add an IP binding and SSL certificate to the IIS Web site as applicable.&amp;nbsp;Be sure to do an IIS metabase backup,&amp;nbsp;restart the WSS Web Application Service and&amp;nbsp;then restore the IIS metabase.&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1858425.aspx</link><pubDate>Sat, 27 Oct 2007 00:40:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1858425</guid><dc:creator>PetrTab</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1858425.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1858425</wfw:commentRss><description>&lt;p&gt;I was looking at the IIS metabase which stores the host header as xxx.xxx.xxx.xxx:&amp;lt;port&amp;gt;:&amp;lt;host header&amp;gt; and it seemed that you may be able to specify the host header in the URL with a colon after the port, but that&amp;#39;s not the case as Tomkmvp points out. The host header is stored in the application layer, while the IP and Port are stored in the TCP/IP transport layer. So in the case of an IP address&amp;nbsp;using a&amp;nbsp;default port 80, it appears that IIS sends all requests to the default website (sharepoint services website in my case). The alternative being that you have a registered domain name for each site hosted on your&amp;nbsp;IIS, and in that case, IIS is able to resolve these domain names as host headers on the same IP and Port.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been working with the URL Rewrite/Redirection concept offered by Jeff. There is the ASP.net level URL Rewrite and the ISAPI Filter level URL Rewrite. To use ASP.net URL Rewrite, the request must be for a page with an&amp;nbsp;asp extension (*.asp, *.aspx, etc.) so that IIS knows to hand off the request to ASP.net where the rewrite code can be executed. That&amp;#39;s too far down the IIS pipeline&amp;nbsp;where my goal is&amp;nbsp;an extensionless URL Rewrite (&lt;a href="http://xxx.xxx.xxx.xxx/Test"&gt;http://xxx.xxx.xxx.xxx/Test&lt;/a&gt;). To create an extensionless URL Rewrite,&amp;nbsp;you have&amp;nbsp;to move up the IIS pipeline to the ISAPI Filter level. This required that I create a IIS Filter as a&amp;nbsp;DLL file, and I found a good article at The Code Project &lt;a href="http://www.codeproject.com/isapi/isapiredirector.asp"&gt;http://www.codeproject.com/isapi/isapiredirector.asp&lt;/a&gt;&amp;nbsp;that shows how to implement this. &lt;/p&gt;
&lt;p&gt;I was able to modify, compile&amp;nbsp;and run&amp;nbsp;The Code Project&amp;nbsp;sample ISAPI Filter code successfully to perform URL Rewrites within the default website. Ultimately, I was hoping that I would be able to redirect to the intranet host headers like &lt;a href="http://test/"&gt;http://Test&lt;/a&gt;, but that did not work. I know that my host headers on the intranet do work. Either IIS cannot make that connection (between a path and a host header), or my function code is incorrect for this. To illustrate, below is an example of one of my failed&amp;nbsp;attempts:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;DWORD CredirectorFilter::OnPreprocHeaders(CHttpFilterContext* pCtxt,&lt;br /&gt;&amp;nbsp;PHTTP_FILTER_PREPROC_HEADERS pHeaderInfo)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;// TODO: React to this notification accordingly and&lt;br /&gt;&amp;nbsp;char buffer[256];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DWORD buffSize = sizeof(buffer);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOOL&amp;nbsp; bHeader=pHeaderInfo-&amp;gt;GetHeader(pCtxt-&amp;gt;m_pFC, &amp;quot;url&amp;quot;, buffer, &amp;amp;buffSize); &lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;CString urlString(buffer);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlString.MakeLower(); // for this exercise &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (urlString.Find(&amp;quot;&lt;strong&gt;Test&lt;/strong&gt;&amp;quot;) != -1) //we want to redirect this file&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;urlString.Replace(&lt;a href="http://xxx.xxx.xxx.xxx/Test"&gt;&lt;strong&gt;http://xxx.xxx.xxx.xxx/Test&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;, &lt;/strong&gt;&lt;a href="http://test/"&gt;&lt;strong&gt;http://Test&lt;/strong&gt;&lt;/a&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char *newUrlString= urlString.GetBuffer(urlString.GetLength());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pHeaderInfo-&amp;gt;SetHeader(pCtxt-&amp;gt;m_pFC, &amp;quot;url&amp;quot;, newUrlString);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return SF_STATUS_REQ_HANDLED_NOTIFICATION;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;// return the appropriate status code&lt;br /&gt;&amp;nbsp;return SF_STATUS_REQ_NEXT_NOTIFICATION;&lt;br /&gt;}&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;I&amp;#39;ve done a lot of testing and found that the code above returns&amp;nbsp;header informatiion that appears to be relative within the default website. For example, I am able to replace &amp;quot;\default.cfm&amp;quot; with &amp;quot;\default.htm&amp;quot; or&amp;nbsp;&amp;nbsp;\default.cfm&amp;quot; with &amp;quot;\Test\default.htm&amp;quot; successfully. But I am having trouble redirecting to something like &lt;a href="http://www.microsoft.com/"&gt;http://www.microsoft.com&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Again, my overall question is how to come into IIS on&amp;nbsp;an IP address and Port 80, and direct the request to a specific website on IIS in a way that Sharepoint remains intact on the default website. &lt;/p&gt;
&lt;p&gt;My current thinking is that an ISAPI Filter may be an option. Any help with the ISAPI Filters would be greatly appreciated. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1857974.aspx</link><pubDate>Thu, 18 Oct 2007 12:53:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857974</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1857974.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1857974</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;PetrTab:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;However, in my scenario, I only have a ip address with no plans for a domain name, and I was curious to know if there may be some way to format the url to indicate a specific host header.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;No - In that case, you can not use host headers as they require DNS. 
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;PetrTab:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I noticed that for some areas of sharepoint, you can use &lt;a href="http://xxx.xxx.xxx.xxx/Remote"&gt;http://xxx.xxx.xxx.xxx/Remote&lt;/a&gt; or &lt;a href="http://xxx.xxx.xxx.xxx/ClientHelp"&gt;http://xxx.xxx.xxx.xxx/ClientHelp&lt;/a&gt;&amp;nbsp;and these urls do get resolved correctly when accessed from the internet. This leads me to believe that I can configure something similar for the website that I create.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve even tried duplicating the &amp;quot;Remote&amp;quot; folder within the sharepoint web directory&amp;nbsp;and renaming it to &amp;quot;Test&amp;quot; to try &lt;a href="http://xxx.xxx.xxx.xxx/Test"&gt;http://xxx.xxx.xxx.xxx/Test&lt;/a&gt; and this does not work. So I&amp;#39;m seeing an implementation of what I want, but I don&amp;#39;t know how to configure it.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;If the root of your server (&lt;a href="http://xxx.xxx.xxx.xxx/"&gt;http://xxx.xxx.xxx.xxx/&lt;/a&gt;) is hosting SharePoint, and you want to have a /Test folder that is outside of SharePoint, you need to tell SharePoint to ignore/exclude that folder.&amp;nbsp; In WSS 2 there&amp;#39;s a way to do this, I&amp;#39;m trying to find out how it&amp;#39;s done with WSS 3 ...&lt;/p&gt;</description></item><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1857946.aspx</link><pubDate>Wed, 17 Oct 2007 20:55:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857946</guid><dc:creator>PetrTab</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1857946.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1857946</wfw:commentRss><description>&lt;p&gt;I didn&amp;#39;t mean to imply that I want to use host headers to resovle directories. I just happened to have named all three (the directory, the website, and the Host Header as&amp;nbsp;&amp;quot;Test&amp;quot;. I&amp;nbsp;created a&amp;nbsp;host header named &amp;quot;Test&amp;quot; for a website named &amp;quot;Test&amp;quot; in a directory named &amp;quot;Test&amp;quot;. I also needed to create an entry in my server DNS to resolve the name &amp;quot;Test&amp;quot; so that it would be accessible on the local network by &lt;a href="http://test/"&gt;http://Test&lt;/a&gt;. This works and confirms that my host header is setup correctly for local access - intranet type connections.&lt;/p&gt;
&lt;p&gt;Normally for internet access, I would setup a subdomain&amp;nbsp;&amp;quot;Test.mydomain.com&amp;quot; and register this subdomain with a registrar. Then I would setup the host header to be &amp;quot;Test.mydomain.com&amp;quot;. IIS would then be able to resolve&amp;nbsp;requests to Test.mydomain.com and send these requests to my website named &amp;quot;Test&amp;quot;. However, in my scenario, I only have a ip address with no plans for a domain name, and I was curious to know if there may be some way to format the url to indicate a specific host header.&lt;/p&gt;
&lt;p&gt;I noticed that for some areas of sharepoint, you can use &lt;a href="http://xxx.xxx.xxx.xxx/Remote"&gt;http://xxx.xxx.xxx.xxx/Remote&lt;/a&gt; or &lt;a href="http://xxx.xxx.xxx.xxx/ClientHelp"&gt;http://xxx.xxx.xxx.xxx/ClientHelp&lt;/a&gt;&amp;nbsp;and these urls do get resolved correctly when accessed from the internet. This leads me to believe that I can configure something similar for the website that I create.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve even tried duplicating the &amp;quot;Remote&amp;quot; folder within the sharepoint web directory&amp;nbsp;and renaming it to &amp;quot;Test&amp;quot; to try &lt;a href="http://xxx.xxx.xxx.xxx/Test"&gt;http://xxx.xxx.xxx.xxx/Test&lt;/a&gt; and this does not work. So I&amp;#39;m seeing an implementation of what I want, but I don&amp;#39;t know how to configure it.&lt;/p&gt;
&lt;p&gt;In the previous post, Jeff brought up&amp;nbsp;the Url Rewrite&amp;nbsp;method, which I&amp;#39;ve been investigating as a possibility. I see that the Rewrite method can be implemented at the ISAPI Filter level or the ASP.net level. At the ASP.net level, you can&amp;nbsp;use http modules or http handlers to respond to anyone of the many events. Then depeding&amp;nbsp;on whether authorization or authentication is used, if any, the Rewrite method is subject to fail depending on the choices of implementation. And then I still don&amp;#39;t know if the Url Rewrite method would give me access the to intranet host header &amp;quot;Test&amp;quot; that I&amp;#39;ve setup. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1857915.aspx</link><pubDate>Wed, 17 Oct 2007 12:13:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857915</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1857915.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1857915</wfw:commentRss><description>&lt;p&gt;It sounds like you&amp;#39;re misunderstanding what a host header is - it represents a server name, not a directory name, so it gets used in place of the IP address.&lt;/p&gt;</description></item><item><title>Re: Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1857864.aspx</link><pubDate>Tue, 16 Oct 2007 19:00:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857864</guid><dc:creator>jeff@zina.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1857864.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1857864</wfw:commentRss><description>&lt;p&gt;You can&amp;#39;t do this with host headers.&amp;nbsp; You can use the IP as a host header, but not the directory name.&amp;nbsp; If all your pages fall under that same IP address, you could segregate this with a host header to the IP and each subdirectory part of the same site.&amp;nbsp; You could also use ASP.NET&amp;#39;s URL Rewrite or ISAPIRewrite to redirect to the location you desire based on a directory name.&amp;nbsp; Essentially, for both &lt;a href="http://192.168.1.1/folder1"&gt;http://192.168.1.1/folder1&lt;/a&gt; and &lt;a href="http://192.168.1.1/folder12"&gt;http://192.168.1.1/folder12&lt;/a&gt;, you have the same host with different subdirectories.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Host Header Configuration with Default Website and Sharepoint Services on the Same Machine</title><link>http://forums.iis.net/thread/1857857.aspx</link><pubDate>Tue, 16 Oct 2007 18:05:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1857857</guid><dc:creator>PetrTab</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1857857.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1857857</wfw:commentRss><description>&lt;p&gt;Hi All, &lt;/p&gt;
&lt;p&gt;I&amp;#39;m attempting to connect over the internet to one of serveral websites on a single IP Address using Host Headers. The problem is that I&amp;#39;m coming into the server with an IP Address instead of a registered domain name. So I&amp;#39;m attempting name resolution after arriving at the server and not prior as is normally done. I&amp;#39;m trying to setup &lt;a href="http://xxx.xxx.xxx.xxx/%3Chost"&gt;http://xxx.xxx.xxx.xxx/&amp;lt;host&lt;/a&gt; header&amp;gt; like sharepoint does for &lt;a href="http://xxx.xxx.xxx.xxx/remote"&gt;http://xxx.xxx.xxx.xxx/remote&lt;/a&gt; and &lt;a href="http://xxx.xxx.xxx.xxx/clientaccess"&gt;http://xxx.xxx.xxx.xxx/clientaccess&lt;/a&gt;. I can not find information on this type of configuration.&lt;/p&gt;
&lt;p&gt;I have a Small Business Server 2003 domain controller running Routing and Remote Access behind a Linksys router. The default website&amp;nbsp; and Windows Sharepoint Services (including remote, clientinfo, companyweb, etc) are intalled and work as expected. I am able to to use the &amp;quot;Configure E-mail and Internet Connection Wizard&amp;quot; (or manual settings) to expose the default website to external requests.&lt;/p&gt;
&lt;p&gt;I would like to setup a second website independent of the default website and sharepoint. I would prefer to keep all http access on default port 80 relying on Host Headers for website name resoution. &lt;/p&gt;
&lt;p&gt;Using IIS 6.0, I&amp;#39;ve created a new website named &amp;quot;Test&amp;quot; in its own directory c:\Test including a default page and a web.config file. I set the host header to &amp;quot;Test&amp;quot;, set the IP to the server and left default port 80. I also added an alias/cname for &amp;quot;Test&amp;quot; in the server DNS. Locally, I am able to go to &lt;a href="http://test/"&gt;http://Test&lt;/a&gt; just as it is possible to go to &lt;a href="http://companyweb/"&gt;http://companyweb&lt;/a&gt;. But I would also like to connect from the internet using &lt;a href="http://xxx.xxx.xxx.xxx/Test"&gt;http://xxx.xxx.xxx.xxx/Test&lt;/a&gt; and this is where I&amp;#39;m having the problem.&lt;/p&gt;
&lt;p&gt;If I can&amp;#39;t get this configuration to work, I&amp;#39;ll go on to a non-standard port configuration, but I would prefer a host header solution.&lt;/p&gt;
&lt;p&gt;Note: I noticed that if I configure &amp;quot;Test&amp;quot; with a blank Host Header, on port 80 and change &amp;quot;All Unassigned&amp;quot; to point to the server IP, then internet requests to the WAN IP will go to my new website &amp;quot;Test&amp;quot; default page. But doing this disables access to the default website and sharepoint as would be expected. I mention this to show that internet traffic can pass through the router/firewall configuration.&lt;/p&gt;
&lt;p&gt;Any help/thoughts with this configuration would be greatly appreciated.&lt;/p&gt;</description></item></channel></rss>