Fixing nginx conf to return 404 on things it cant find rather than index.html
This commit is contained in:
parent
321734a453
commit
91bb927cf5
@ -35,11 +35,12 @@ http {
|
||||
|
||||
server {
|
||||
server_name "shockrah.xyz";
|
||||
|
||||
root /var/www/shockrah.xyz;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
server {
|
||||
|
Loading…
Reference in New Issue
Block a user