1

I look for a solution to forward http/https traffic to a backend webserver based on the request url. Our current setup:

  • Webserver1 (Sharepoint)
  • Webserver2 (Reporting Services)

Both run Windows Server 2008 and IIS7. The Webserver1 receives all traffic on port 80 and 443 and hosts a website called www.example.com

Now I want the Webserver2 to be accessible as www.example.com/Reports. Unfortunately we do not have any advanced edge firewall that could route traffic based on the request url. So I wonder if there is a way to configure Webserver1 to forward all traffic if it matches www.example.com/Reports. Any way IIS7 could do this?

Suggestions are welcome..

3 Answers 3

4

IIS7 has a URL rewrite module, which, along with the Application Request Routing module, based on the URL, can be used to do what you want.

You build it all up in the UI, and it then automatically build the XML and puts it in the web.config for you.

See "Reverse proxy" (number 7) on this list.

2
  • Thanks for the suggestion. But it seems ARR fails as soon as I use NTLM authentication over HTTP :(
    – driAn
    Jun 18, 2009 at 20:27
  • "[U]nless you need to do authorization on the router machine, you should turn off windows auth on it and only enable anonymous auth - this will make ARR just pass the challenges/credentials along to the backend machine." - forums.iis.net/t/1150821.aspx You could do it just for the one virtual directory.
    – crb
    Jun 18, 2009 at 20:31
0

You might be able to do a URL redirection to a different port number.

So set up www.example.com/Reports as a virtual directory on web server 1, but have it url redirect to www.example.com:444/Reports. It's possible you might need to change the domain name that it redirects to.

I'll be interested to see how it works and if I missed any steps.

0

I think your problem is similar to the one I had: Forwarding hostheaders

I ended up paying for the "ISAPI_Rewrite" filter, witch I'm sure can do what you want.

The only issue is that you have to do a little RegEx magic, witch I find a bit difficult.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .