<pre name="code" class="python"> server { listen 8001; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root /t/deploy/zjdev/deployedApps/zjzc-web-frontEnd/; index index.html index.htm; } location /backoffice { root /t/deploy/zjdev/deployedApps/zjzc-web-backoffice/; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html {
nginx 配置多个目录
最新推荐文章于 2024-05-02 11:57:58 发布
本文介绍了如何使用nginx配置管理多个目录,适用于web服务器的优化和多站点部署。
摘要由CSDN通过智能技术生成