This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 8080;
|
||||
listen [::]:8080;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
server_tokens off;
|
||||
absolute_redirect off;
|
||||
|
||||
location = / {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
return 308 /;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @mainpage;
|
||||
}
|
||||
|
||||
location @mainpage {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user