Welcome! Log In Create A New Profile

Advanced

Re: nginx is too greedy with urls

April 29, 2016 02:03PM
If you're from the apache world, nginx configuration if often counter-intuitive.

Does the following help?


# To find location matching a given request, nginx first checks locations defined
# using the prefix strings (prefix locations). Among them, the location with the
# longest matching prefix is selected and remembered.
# Then regular expressions are checked, in the order of their appearance in
# the configuration file.
# The first matching expression stops the search and nginx will use this location.
# If the longest matching prefix location has the '^~' modifier then regular
# expressions are not checked.
# Also, using the '=' modifier it is possible to define an exact match of URI
# and location. If an exact match is found, the search terminates.
Subject Author Posted

nginx is too greedy with urls

Anonymous User April 29, 2016 10:12AM

Re: nginx is too greedy with urls

shiz April 29, 2016 02:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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