Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
default.conf 677 Bytes
Copy Edit Raw Blame History
lixu1995 authored 2023-07-17 18:08 . feat: init
server {
listen 80 default_server;
server_name _;
location / {
root /usr/share/nginx/html/dist/build/h5;
try_files $uri $uri/ /index.html
index index.html index.htm;
#try_files $uri $uri/ /index.html;
add_header Access-Control-Allow-Origin *;
add_header access-control-allow-headers *;
add_header Access-Control-Allow-Methods *;
# add_header Access-Control-Allow-Origin $http_origin;
}
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化