nginx 配置访问 静态文件

server {

        listen       7777;

        server_name  crpapitest.shunshunliuxue.com;

        index index.html index.htm index.php;

 

 

        location /nas/crp/wincall/ {

            alias /nas/crp/wincall/;

            expires 30d;

            access_log off;

            break;

        }

        location /static {

        alias /data/www-data/crp-backend_8001/static_publish;

        }

}

猜你喜欢

转载自www.cnblogs.com/niehaidong111/p/9668631.html