Fwd: nginx.conf + Location + regular expression
fx.juhel at free.fr
fx.juhel at free.fr
Wed Jan 24 13:27:18 UTC 2018
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
More information about the nginx-devel
mailing list