Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 09:01:43
Original
1198 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template