3

I have a site that is something like this:

https://www.website.org/cms

I have an application that's running on another service on the same server on a different port that I want to have accessible over this URL:

https://www.website.org/dashboard

the dashboard site is accessible from the server using http://localhost:8081/dashboard

How can I use URL Rewrite to make this happen?

Snowburnt
  • 6,523
  • 7
  • 30
  • 43

1 Answers1

1

So simple actually:

<rewrite>
   <rules>
      <rule name="dashboard">
         <match url="(dashboard.+)" />
         <action type="Rewrite" url="http://localhost:8081/{R:0}" />
      </rule>
   </rules>
</rewrite>
Snowburnt
  • 6,523
  • 7
  • 30
  • 43
  • Where did you put the rule? At machine (host) level or on the website level (at a level wehre website.org is bound)? Does it also work from requests on the same machine? – Louis Somers Jan 25 '16 at 15:12