Solved

IIS 7 and forwarding

Posted on 2011-03-04
2
691 Views
Last Modified: 2013-11-05
I have IIS 7 installed with URL rewrite 2.0. How do I get the web server to proxy forward? It should be web addresses in https, https:/www.ratsoft.com/dir/url and forward them internally to our web server http://192.168.1.20/dir/url, when and only when the dir part is present?
0
Comment
Question by:BigRat
2 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
Comment Utility
Hi,

For this you will need AAR as well. You can download them separately from here....

URL Rewrite Module
x86 - http://go.microsoft.com/?linkid=9722533
x64 - http://go.microsoft.com/?linkid=9722532

Application Request Routing Module
x86 - http://iis.net/downloads/default.aspx?tabid=34&g=6&i=1709
x64 - http://iis.net/downloads/default.aspx?tabid=34&g=6&i=1712

OR through the Web Platform installer by installing Application Request Routing. It will install the dependencies for you.


Configure AAR for Reverse Proxy
1.Open IIS Manager
2.Select a server node in the tree view on the left hand side and then click on the "Application Request Routing" feature:
3.Check the "Enable Proxy" check box. Leave the default values for all the other settings on this page.

Create URL Rewrite
1.Open the web.config file for you website.
2.Under the /configuration/system.webServer, add the following section and then save the file.
   <rewrite>
    <rules>
        <rule name="Reverse Proxy to 192.168.1.20" stopProcessing="true">
            <match url="^dir/url/(.*)" />
            <action type="Rewrite" url="http://192.168.1.20/dir/url/{R:1}" />
        </rule>
    </rules>
   </rewrite>

make sure you have a default document setup too.

Cheers,
Hades666
0
 
LVL 27

Author Closing Comment

by:BigRat
Comment Utility
OK, it was the ARR module which I was missing.

Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now