Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Re: Condensing Location Directives
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
locojohn
July 27, 2012 09:25AM
Registered: 13 years ago
Posts: 226
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
Reply
Quote
RSS
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: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024