compile and install LUA 5.1.5 to /opt/bunkerized-nginx/deps and introduced REDIRECT_TO feature
This commit is contained in:
1
confs/site/redirect-to.conf
Normal file
1
confs/site/redirect-to.conf
Normal file
@@ -0,0 +1 @@
|
||||
return 301 {{ REDIRECT_TO }}$request_uri;
|
||||
@@ -172,7 +172,12 @@ server {
|
||||
|
||||
# inject into body
|
||||
{% if INJECT_BODY != "" +%}
|
||||
include {{ NGINX_PREFIX}}inject-body.conf;
|
||||
include {{ NGINX_PREFIX }}inject-body.conf;
|
||||
{% endif %}
|
||||
|
||||
# redirect everything to another host
|
||||
{% if REDIRECT_TO != "" +%}
|
||||
include {{ NGINX_PREFIX }}redirect-to.conf;
|
||||
{% endif %}
|
||||
|
||||
# reverse proxy
|
||||
|
||||
Reference in New Issue
Block a user