Solved

IIS 7 and forwarding

Posted on 2011-03-04
2
701 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 35056946
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
ID: 35070424
OK, it was the ARR module which I was missing.

Thanks
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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