add REDIRECT_TO_REQUEST_URI variable and edit environment variables docs

This commit is contained in:
bunkerity
2021-08-20 14:59:16 +02:00
parent 58f2926e95
commit b13ff34569
7 changed files with 116 additions and 17 deletions

View File

@@ -1 +1,5 @@
{% if REDIRECT_TO_REQUEST_URI == "yes" %}
return 301 {{ REDIRECT_TO }}$request_uri;
{% else %}
return 301 {{ REDIRECT_TO }};
{% endif %}