多子项目工程 nginx 配置

项目部署位置:/export/Instances/cf-static-page-jkplus/runtime

子项目index位置 / 域名访问默认位置:/export/Instances/cf-static-page-jkplus/runtime/jkplus-static/index.html

server {
listen 80;
server_name cf.jr.example.com;
access_log /export/nginx/logs/cf.jr.example.com_access.log main;
error_log /export/nginx/logs/cf.jr.example.com_error.log warn;
index index.html /jkplus-static/index.html;
error_page 404 502 503 500 =301 https://cf.jr.example.com;
location / {
try_files $uri $uri/ @fallback;
root /export/Instances/cf-static-page-jkplus/runtime;
}
location @fallback {
root /export/Instances/cf-static-page-jkplus/runtime/jkplus-static;
}
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注