ubuntu15.04 nginx1.6.5 配置虚拟主机,ubuntu15.04配置
1 在/etc/hosts 添加host
2 在/etc/nginx/nginx.conf中的http里添加include 虚拟主机配置文件的目录路径 或者 直接在现有的路径下添加虚拟主机配置文件
3 在路径下添加虚拟主机配置文件 文件内容是 /etc/nginx/sites-available/default里面的server 注意server里的fastcgi_pass这一项启用的是sock这一行 9000那一行注释
4 重启nginx php5-fpm
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn