Nginx配置静态web项目

server {
    server_name my-web.zhaoxxnbsp.com;
    listen 80;

    access_log /var/log/nginx/my-web.access.log;
    error_log /var/log/nginx/my-web.error.log;

    location / {
        root /home/zxx/frontend/my-web;
        index index.html index.php;
        try_files $uri $uri/ /index.html;
    }
}

posted @ 2020-08-07 10:59  直角漫步  阅读(505)  评论(0编辑  收藏  举报