1在/usr/local/nginx/conf/vhost放入一下文件
server { listen 80; #listen [::]:80; server_name chaoshi.org www.chaoshi.org; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/www.chaoshi.org/video/frontend/web; include other.conf; #error_page 404 /404.html; include enable-php.conf; location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } location ~ /\. { deny all; } access_log /home/wwwlogs/www.chaoshi.org.log; }
时间: 2024-10-20 09:49:11