On Thu, Nov 10, 2016 at 03:04:43PM -0500, ulik wrote:

Hi there,

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

The one-word answer is "no".

So the follow-up question is: what do you want to do?

> Here is the scenario:
> 
> Request: www.example.com/demo?path=abc
> Docroot: /var/www/example/abc/

What would you like nginx to do with that request, that somehow involves
Docroot?

Serve a specific file from the filesystem? Make a fastcgi request to an
upstream including a particular key/value pair? Something else?

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

And what would you like nginx to do with *that* request, that is different
from the previous one?

Perhaps the thing that you want achieved, can be achieved somehow.

        f
-- 
Francis Daly        [email protected]

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to