nginx-proxy-manager/backend/templates/redirection_host.conf
renovate[bot] 132623891a
dep updates/see description
little php design preview (dead host/default page/fancyindex)
improved "exploit blocking"
fancyindex now default off
block access to .git folders/files
change NGINX_404_REDIRECT default to false
2024-06-09 15:20:13 +02:00

29 lines
795 B
Text

{% include "_header_comment.conf" %}
{% if enabled == 1 or enabled == true %}
server {
{% include "_listen.conf" %}
{% include "_certificates.conf" %}
{% include "_hsts.conf" %}
{% include "_forced_tls.conf" %}
{% include "_brotli.conf" %}
include conf.d/include/always.conf;
{{ advanced_config }}
{% if use_default_location == 1 or use_default_location == true %}
location / {
include conf.d/include/always.conf;
{% if preserve_path == 1 or preserve_path == true %}
return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }}$request_uri;
{% else %}
return {{ forward_http_code }} {{ forward_scheme }}://{{ forward_domain_name }};
{% endif %}
}
{% endif %}
# Custom
include /data/nginx/custom/server_redirect.conf;
}
{% endif %}