Set location based on query arg

ulik nginx-forum at forum.nginx.org
Thu Nov 10 20:04:43 UTC 2016


Is it possible to set/modify location based on the query string arg from
request?

Here is the scenario:

Request: www.example.com/demo?path=abc
Docroot: /var/www/example/abc/

Request: www.example.com/demo?path=xyz
Docroot: /var/www/example/xyz/

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270868,270868#msg-270868



More information about the nginx mailing list