parent
58f411e8b1
commit
c4b1c5b458
@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost default_server;
|
||||
client_max_body_size 200m;
|
||||
|
||||
location / {
|
||||
if ($request_filename ~* .*\.(?:htm|html)$) {
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri @index ;
|
||||
}
|
||||
|
||||
location @index {
|
||||
add_header Cache-Control "no-store" ;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri/index.html /index.html;
|
||||
}
|
||||
|
||||
error_page 405 =200 $uri;
|
||||
}
|
Loading…
Reference in new issue