Welcome! Log In Create A New Profile

Advanced

nginx virtual directory redirect to a static file

February 04, 2021 03:07AM
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
Subject Author Posted

nginx virtual directory redirect to a static file

proj964 February 04, 2021 03:07AM

Re: nginx virtual directory redirect to a static file

Francis Daly February 04, 2021 04:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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