« Previous Next »

Thread: Reverse proxy

Last post 07-14-2009 8:13 AM by Kbalz. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-10-2009, 2:11 PM

    • Kbalz
    • Not Ranked
    • Joined on 04-21-2008, 11:47 AM
    • Posts 2

    Reverse proxy

    Hello, I'm trying to use the URL Rewrite Module as a reverse proxy. I have a camera device that I want to access from outside of the network, this was possible with ISA Server but we no longer have it.

    Here is what I'm after:

    ---------------------------

    External network browser requests http://camera.domain.com/camera1/

    IIS 7.0 sends this request to camera1's IP which is http://192.168.1.53/

    ----------------------------

    Internally when I hit the camera's web interface, it loads several other pages using frames and java script. Internally, when I request http://192.168.1.53/ it redirects me to http://192.168.1.53/view/index.shtml and loads many other pages (which I can see using Fiddler2).

    Is it possible for me to use Rewrite module to do this? I was using URL Rewriter from codeplex but I couldn't get it to work 100%. I imported my rule and it looks like this:

    <rewrite>
    <
    rules>
    <
    rule name="ptz1" stopProcessing="true">
    <
    match url="(.*)" />
    <
    action type="Rewrite" url="http://192.168.1.53/{R:1}" />
    </
    rule>
    </
    rules>
    </
    rewrite>

    My request didn't work I got a 404 from the external world, I could use some help getting this ironed out! Thanks.

  • 07-10-2009, 4:52 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Reverse proxy

    What you need is a way to rewrite links in the http payload in the response to re-point them from the internal address to the external address - this is not possible in the current release of url-rewriter, but will be possible in url-rewrite v2 whose beta is scheduled to be released soon.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 07-13-2009, 10:18 AM In reply to

    • TonyCool
    • Not Ranked
    • Joined on 12-19-2008, 2:31 PM
    • Posts 2

    Re: Reverse proxy

    You may achieve what you want using the Helicon Ape mod_proxy module. The syntax is as follows:

    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass /camera1(.*) http://192.168.1.53$1
    ProxyPassReverse /camera1(.*) http://192.168.1.53$1
  • 07-14-2009, 8:13 AM In reply to

    • Kbalz
    • Not Ranked
    • Joined on 04-21-2008, 11:47 AM
    • Posts 2

    Re: Reverse proxy

    OK I'll keep an eye out for the Beta,

     TonyCool, I'll try that mod proxy today and reply if it worked for me. thanks!

Page 1 of 1 (4 items)
Microsoft Communities