ubuntu15.04 nginx1.6.5 配置虚拟主机

1 在/etc/hosts   添加host

2 在/etc/nginx/nginx.conf中查看http里的include ****** /*.conf的路径,在此路径下添加一个新的******.conf

3 在路径下添加虚拟主机配置文件 文件内容是 /etc/nginx/sites-available/default里面的server 注意server里的listen 80只要第一个并且后面不跟域名 fastcgi_pass这一项启用的是sock这一行 9000那一行注释  

4 重启nginx  php5-fpm

posted @ 2015-06-15 16:51  shang@shikai  阅读(333)  评论(0编辑  收藏  举报