http://www.cnblogs.com/taiyonghai/p/6728707.html nginx安装
http://storysky.blog.51cto.com/628458/486338/ nginx 域名跳转一例~~~(rewrite、proxy)
http://blog.youkuaiyun.com/wzl505/article/details/53213939 一台nginx服务器多域名配置
http://www.cnblogs.com/zlingh/p/6288994.html
重启nginx nginx -s reload
关于fastcgi_index是这么说的
如果请求的FastCGI URI以/结束,该指令设置的文件会被附加到URI的后面并保存在变量$fastcgi_script_name中
而index是:
该指令用于设置nginx的默认首页文件
而我们的配置经常是
location ~* \.php$ {
fastcgi_pass cos_ups;
fastcgi_index index.php;
include fastcgi.conf;
}
在这里指定fastcgi_index 其实是没有用的,因为前面的location ~* \.php$已经把“/结束”这种情况排除了