nginx virtual directory redirect to a static file

proj964 nginx-forum at forum.nginx.org
Thu Feb 4 08:07:27 UTC 2021


Perhaps this is something that can't be done with nginx, but I would like to
have a url, 
like http://localhost:nnn/abc return a file from q:/d1/qrst.txt.

I have tried many combinations of root, alias, rewrite, try_files in
location.
For everything I try, nginx inserts "abc" into the final absolute path
which, of course,
fails because there is no "abc" in q:/d1/qrst.txt

Is there any chance that there is a location directive that will do what I
would like
in nginx?
thanks, jon

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



More information about the nginx mailing list