Improve 404 responses settings
This commit is contained in:
parent
0516e1bcf8
commit
62766d6d9c
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@
|
|||
rewrite ^(.*)/ $1/index.html;
|
||||
}
|
||||
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-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue