Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

IIS 7 and forwarding

Posted on 2011-03-04
2
Medium Priority
?
707 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 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

722 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