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 {
|
||||||
server_name "shockrah.xyz";
|
server_name "shockrah.xyz";
|
||||||
|
|
||||||
root /var/www/shockrah.xyz;
|
root /var/www/shockrah.xyz;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
|
Loading…
Reference in New Issue
Block a user