1
0
의 미러 https://github.com/dokku/buildpack-nginx.git synced 2025-07-11 16:20:46 +00:00

2 커밋

작성자 SHA1 메시지 날짜
6c1abc0547 Merge pull request #51 from zachahn/patch-1
Respond with a 404 when the file doesn't exist
2021-12-02 22:47:33 -05:00
6672b6257a Respond with a 404 when the file doesn't exist
Prior to this, I was seeing the successful HTTP status 200 when
requesting files that did not exist.

With this change, the server sends back Nginx's default 404 page instead
of the home page.
2021-12-02 22:19:05 -05:00

파일 보기

@ -23,7 +23,7 @@ http {
port_in_redirect off;
location / {
try_files $uri $uri/ /index.html;
try_files $uri $uri/ =404;
}
}
}