Welcome! Log In Create A New Profile

Advanced

IIS rewrite to nginx rewrite

Posted by bradleyb127 
IIS rewrite to nginx rewrite
July 02, 2019 07:53PM
Hello everyone -

I've been running a web site on IIS for years and have used the following rewrite rule to make it easier to access resources on my LAN. In this example, I'm able to type in plex.domain.com which hits IIS which rewrites the URL and sends me to the correct location including port number.

I'm switching ti nginx now and have tried many different configurations and following many different examples on the web on how to write this for nginx - but have had no luck.

Could someone point me in the right direction to accomplish this?

Thank you in advance for your assistance.


<rule name="plex" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(plex\.)(domain\.com.*)$" />
</conditions>
<action type="Redirect" url="http://192.168.0.2:32400/web/index.html#" />
</rule>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready