Welcome! Log In Create A New Profile

Advanced

convert iis rewrite to nginx

Posted by alexbon 
convert iis rewrite to nginx
August 26, 2014 04:55PM
New to nginx, totally confused.

How to convert this URL rewrite to nginx?
<rule name="Redirect1" stopProcessing="true">
<match url="^(about-us|sites\/company.com|item1|item2|item3)/.*$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="https://backend.com/<which ever link they decide to click on>" />
</rule>


Do I need to add one locations for each item (ie. location /item1..... location /item2... etc)? Can I use one location directive for all items?

Thanks and I appreciate it!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 313
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