locked
IIS7 and Windows Home Server on same network RRS feed

  • Question

  • User-161867776 posted

    So my question is this:

    I already have an IIS7 Server on my network running my website and blog and just added a new WHS to my network last week. My problem is that I would like to access the website for my regular website/blog as well as my HP Media Server Photo site, files, etc. I have setup a sub domain for my WHS and so is it possible to have the IIS server forward the request for the sub domain to the WHS's site? I've tried redirects but this didn't work. The only menthod I haven't tried is setting the directory of the site on IIS to the folder on the WHS of where the site files reside. However to do this, would I need to disable the IIS service on the WHS? I'm a little green when it comes to IIS and maybe an IIS forum would be a better place but I was hoping someone here has the same setup or same issue. Any help would be appreciated

    I've read about using maybe a reverse proxy to possibly make this happen with ARR, but I've followed the steps on this post with no luck. Remote desktop is no problem as I will probably use the WHS RD and utilize that to remote into my other server or desktops on the network.

    Tuesday, January 5, 2010 2:59 AM

Answers

  • User-161867776 posted

     Thanks everyone for help and hints. I was able to get this going by:

    1. Installing the Application Request Routing extension to IIS from here.

    2. Check the “Enable proxy” checkbox located in Application Request Routing feature view is IIS Manager.

    3. Created a website with the address I wanted(http://home.website.com) and added a URL Rewrite rule to the site as:

    <rule name="Homeserver">
      <match url="(.*)" />
      <action type="Rewrite" url="http://homeserver:80/{R:1}" />
    </rule>
    Simple enough really. I think my problem I was having was the "{R:1}" in the rewrite location, makes all the difference as I've found out.
    Thanks again for all the help. 

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Sunday, January 10, 2010 8:14 PM

All replies

  • User-1378068097 posted

    Yes it totally possible but you wanto use an internal not external name to access your WHS.  So don't use the subdomain.homeserver.com but use your internal ip or name of the WHS.

    If you use the external name its just gonna hit back to your IIS 7 Server.

    So you would want redirect/rewrite to the internal name.

    However, also of note is that subdomain.homeserver.com defaults to HTTPS or port 443, if you don't need that on your IIS 7 you could setup your router if you have one to forward port 443 to the WHS and not IIS 7.  But you would have to remember to enter https://subdomain.homeserver.com and not http://

    Tuesday, January 5, 2010 6:45 PM
  • User-161867776 posted

     I've got that far as to rewrite to homeserver:80. I just think I'm missing a step. After reading a few more posts am I required to setup a server farm? I was under the impression that this wasn't needed.

    Basically I'm looking to have home.website.com go to my home server and everything else go to my IIS server. I've enable the proxy on ARR and ticked the "Use URL rewrite...", I then set up rules as:

    #1 -  Condition HTTP_Host > website.com/*   Action > server:80

     #2 - Condition HTTP_Host > home.website.com/*   Action > homeserver:80

    What am I missing? Thanks for the reply LJKelley.

    Tuesday, January 5, 2010 10:22 PM
  • User-1637866776 posted

    There is no need to setup a server farm if you just want to forward request to another server. Have you seen this article? http://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing/. It explains how to setup a configuration similar to what you are trying to do.

    Wednesday, January 6, 2010 2:20 PM
  • User-161867776 posted

     Thanks everyone for help and hints. I was able to get this going by:

    1. Installing the Application Request Routing extension to IIS from here.

    2. Check the “Enable proxy” checkbox located in Application Request Routing feature view is IIS Manager.

    3. Created a website with the address I wanted(http://home.website.com) and added a URL Rewrite rule to the site as:

    <rule name="Homeserver">
      <match url="(.*)" />
      <action type="Rewrite" url="http://homeserver:80/{R:1}" />
    </rule>
    Simple enough really. I think my problem I was having was the "{R:1}" in the rewrite location, makes all the difference as I've found out.
    Thanks again for all the help. 

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Sunday, January 10, 2010 8:14 PM
  • User1782255667 posted

     Thanks everyone for help and hints. I was able to get this going by:

    1. Installing the Application Request Routing extension to IIS from here.

    2. Check the “Enable proxy” checkbox located in Application Request Routing feature view is IIS Manager.

    3. Created a website with the address I wanted(http://home.website.com) and added a URL Rewrite rule to the site as:

    <rule name="Homeserver">
      <match url="(.*)" />
      <action type="Rewrite" url="http://homeserver:80/{R:1}" />
    </rule>
    Simple enough really. I think my problem I was having was the "{R:1}" in the rewrite location, makes all the difference as I've found out.
    Thanks again for all the help. 

     

     

    I am trying to do the exact same thing as you are, but I cannot get it to work.

     I have IIS installed on one machine, and I have two other webservers. 

     

    I used your exact setup (but I put in my sever names instead of yours), but the rewrite does not occur.   What values did you put into the "Reverse Proxy" input field in the Proxy Settings on the ARR manager main page?  I'm wondering if one of my settings are incorrect. 

    Sunday, February 7, 2010 4:02 PM
  • User-460728516 posted

    Hello to all

    The question is i have a windows home server visible on the internet with https://myhomeserver.homeserver.com this server are installed with remaker windows 2003 called windows home server with iis 6.0 i think, and I have other server linux fedora with a site access from internal network from "http://site.internaldomainnetwork.com".

    I want to put the site "http://site.intrenaldomainnetwork.com" visible from the internet over the homeserver domain like this "https://myhomeserver.homeserver.com/site" the site inside the linux machine is written in PHP format.

    The servers have ip address on the same network. example: 192.168.2.20 and 192.168.2.21

    Can i do this with any software?

    If yes please tell me who can i do this.

     

    Best regards 

    Thursday, February 18, 2010 1:01 PM