技术解析
server { server_name www.aaa.com; root /data/web/aaa/;
location / {
index index.php;
try_files $uri $uri/ $uri/index.php /index.php?$args;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server { server_name www.bbb.com; root /data/web/bbb/;
location / {
index index.php;
try_files $uri $uri/ $uri/index.php /i大带宽服务器ndex.php?$args;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
} 然后 nginx.conf 载入这两个文件 其他都没动 问下是什么情况?