nginx: Updated config
This commit is contained in:
parent
e4e831d4bd
commit
c9852f487c
11
nginx.conf
11
nginx.conf
@ -1,14 +1,13 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
if ($request_uri ~ ^/(.*)\.html) {
|
||||||
}
|
return 302 /$1;
|
||||||
|
}
|
||||||
location ~ \.html$ {
|
try_files $uri $uri.html $uri/ =404;
|
||||||
try_files $uri =404;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user