Welcome! Log In Create A New Profile

Advanced

Fwd: nginx.conf + Location + regular expression

Anonymous User
January 24, 2018 08:24AM
Hello nginx DEV TEAM ! How are you ?

I would like to know how can I do to detect this type of directory name with regexp : (Guid 8-4-4-4-12) => “be93d4d0-b25b-de94-fcbb-463e6c0fe9cc”

How can I use $reg_exp in location
I do this :

set $reg_exp "[0-9a-fA-F]{8}?-[0-9a-fA-F]{4}?-[0-9a-fA-F]{4}?-[0-9a-fA-F]{4}?-[0-9a-fA-F]{12}";

location ~ ^/locale/Project/Documents/(reg_exp)/(?<document>.*)$ {

}


Thank you very well for your reply

François – Xavier JUHEL
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Fwd: nginx.conf + Location + regular expression

Anonymous User 442 January 24, 2018 08:24AM

Re: Fwd: nginx.conf + Location + regular expression

Maxim Dounin 210 January 24, 2018 08:58AM

Re: Fwd: nginx.conf + Location + regular expression

Sergey Brester 416 January 24, 2018 09:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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