发布网友 发布时间:2022-04-20 04:47
共4个回答
热心网友 时间:2022-07-12 10:02
下面的这个最简单!再用/root/vhost.sh添加虚拟主机,把网站弄到二级目录里面用就ok啦!/home/wwwroot目录里面不要放网站,哈哈!复制内容到剪贴板代码: gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.0; gzip_comp_level 2; gzip_types text/plain application/x-javascript text/css application/xml; gzip_vary on; #limit_zone crawler $binary_remote_addr 10m;server { listen 80 default; return 500; location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } location /status { stub_status on; access_log off;热心网友 时间:2022-07-12 10:03
还不懂的,按照下面修改/usr/local/nginx/conf/nginx.conf里面内容,前后的内容我都给出来了,还不会的就去跳河死!======================== gzip_types text/plain application/x-javascript text/css application/xml; gzip_vary on; #limit_zone crawler $binary_remote_addr 10m;server { listen 80 default; return 500; }server { listen 80; server_name 123.com; index index.html index.htm index.php; root /home/wwwroot; location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf;热心网友 时间:2022-07-12 10:03
回复 8# 的帖子 放这里是肯定没问题,但123.com的虚拟主机必须删掉,重新添加到别的目录。热心网友 时间:2022-07-12 10:04
回复 5# 的帖子 server那一段里的server_name