http://blog.csdn.net/moqidian/article/details/8063593
http://blog.csdn.net/moqidian/article/details/7481678
nginx 配置多域名步骤 1个ip配置多个域名
1.修改nginx.conf配置文件 include引入 text.dev.conf text2.dev.conf配置文件
2.新建vhosts目录存放text.dev.conf text2.dev.conf
3.修改本地host ip指向域名
4.访问域名即可
注意事项:
listen 80;
server_name www.text.dev;
root /web/text.com; 绝对路径
location ~ \.php$ {
root /web/text.com; 和上面一致或者直接去了
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}