nginx虚拟主机防webshell 完美版
作者:memory 发布时间:2010-04-26, 22:42:33 分类:服务器相关 阅读:1582
我们先来看下nginx.confserver
{
listen 80;
server_name www.a.com;
index index.html index.htm index.php;
root /data/htdocs/www.a.com/;#limit_conn crawler 20;location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}}server
{
listen 80;
server_name www.b.com;
index index.html index.htm index.php;
root /data/htdocs
{
listen 80;
server_name www.a.com;
index index.html index.htm index.php;
root /data/htdocs/www.a.com/;#limit_conn crawler 20;location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}}server
{
listen 80;
server_name www.b.com;
index index.html index.htm index.php;
root /data/htdocs



