Welcome! Log In Create A New Profile

Advanced

Use regex in location to iis web application

Posted by teerar 
Use regex in location to iis web application
February 21, 2018 09:58PM
Hello,
I have try to config nginx as reverse proxy to my IIS web application, I have a lot of web application in IIS.
I can do as below config

location /directory/ {
proxy_pass https://thcom2.thaicom.net/directory/;
}

It not work when user type /Directory. I have try to use regex, but it error.

location ~* /directory/ {
proxy_pass https://thcom2.thaicom.net/directory/;
}


error is nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression,

Please advise me.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready