Cleaned up nginx conf.
This commit is contained in:
parent
f640f6aa59
commit
44fa02ba16
1 changed files with 1 additions and 7 deletions
|
|
@ -5,19 +5,13 @@ server {
|
||||||
|
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
root /usr/share/nginx/public;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
root /usr/share/nginx/public;
|
||||||
index index.html;
|
index index.html;
|
||||||
ssi on;
|
ssi on;
|
||||||
try_files $uri $uri/ $uri.html =404;
|
try_files $uri $uri/ $uri.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# location /includes/ {
|
|
||||||
# deny all;
|
|
||||||
# return 404;
|
|
||||||
# }
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
location = /404.html {
|
location = /404.html {
|
||||||
root /usr/share/nginx/public;
|
root /usr/share/nginx/public;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue