Improve 404 responses settings
This commit is contained in:
parent
0516e1bcf8
commit
62766d6d9c
@ -48,7 +48,9 @@
|
|||||||
rewrite ^(.*)/ $1/index.html;
|
rewrite ^(.*)/ $1/index.html;
|
||||||
}
|
}
|
||||||
location @rewrite_proxy {
|
location @rewrite_proxy {
|
||||||
rewrite ^/(.*)$ /alpo-website/master/$1/index.html break;
|
if ($http_accept ~ "text/html") {
|
||||||
|
rewrite ^/(.*)$ /{{ bucket }}{{ path }}{% if always_root is not defined or always_root %}/$1{% endif %}/index.html break;
|
||||||
|
}
|
||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
Loading…
Reference in New Issue
Block a user