Welcome! Log In Create A New Profile


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=".*" />
<add input="{HTTP_HOST}" pattern="^(plex\.)(domain\.com.*)$" />
<action type="Redirect" url="" />
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready