Welcome! Log In Create A New Profile

Advanced

Re: Condensing Location Directives

July 27, 2012 09:25AM
It's possible to use regex, such as:

location ~ ^/(?<type>[^/]+)/ {
proxy_pass http://127.0.0.1:8080/$type/;
}

BUT two static (non-regex) locations are faster.

Andrejs
Subject Author Posted

Condensing Location Directives

arosolino July 23, 2012 01:37PM

Re: Condensing Location Directives

locojohn July 27, 2012 09:25AM

Re: Condensing Location Directives

arosolino July 27, 2012 09:49AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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