server { listen 80; server_name *.cc.dev.jsaix.com; set $base_path "/data/wwwroot/"; set $path "default"; set_by_lua $set_root_path ' local host = ngx.var.host or ngx.var.uri ngx.var.path = ngx.re.gsub(host,"(.cc.dev.jsaix.com)","") '; access_log /data/wwwlogs/cc.dev.jsaix.com_nginx.log combined; error_log /data/wwwlogs/error.cc.dev.jsaix.com_nginx.log; index index.html index.htm index.php; root $base_path$path/public; include /usr/local/openresty/nginx/conf/rewrite/laravel.conf; #error_page 404 /404.html; #error_page 502 /502.html; location ~ [^/]\.php(/|$) { fastcgi_pass php73:9000; #fastcgi_pass unix:/dev/shm/php73-cgi.sock; fastcgi_index index.php; include fastcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ { expires 30d; access_log off; } location ~ .*\.(js|css)?$ { expires 7d; access_log off; } location ~ /(\.user\.ini|\.ht|\.git|\.svn|\.project|LICENSE|README\.md) { deny all; } location /.well-known { allow all; } }