update 更新 nginx 演示环境配置
This commit is contained in:
parent
14a05ddaca
commit
2fd28ca5c8
@ -52,6 +52,16 @@ http {
|
|||||||
#ssl_prefer_server_ciphers on;
|
#ssl_prefer_server_ciphers on;
|
||||||
# https配置参考 end
|
# https配置参考 end
|
||||||
|
|
||||||
|
# 演示环境配置 拦截除 GET POST 之外的所有请求
|
||||||
|
# if ($request_method !~* GET|POST) {
|
||||||
|
# rewrite ^/(.*)$ /403;
|
||||||
|
# }
|
||||||
|
|
||||||
|
# location = /403 {
|
||||||
|
# default_type application/json;
|
||||||
|
# return 200 '{"msg":"演示模式,不允许操作","code":500}';
|
||||||
|
# }
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user