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>
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>