Home >Backend Development >PHP Tutorial >Ubuntu15.04 nginx1.6.5 configure virtual host, ubuntu15.04 configuration_PHP tutorial

Ubuntu15.04 nginx1.6.5 configure virtual host, ubuntu15.04 configuration_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:50:461123browse

ubuntu15.04 nginx1.6.5 configure virtual host, ubuntu15.04 configuration

1 Add host in /etc/hosts

2 Add the include directory path of the virtual host configuration file to http in /etc/nginx/nginx.conf or add the virtual host configuration file directly to the existing path

3 Add the virtual host configuration file to the path. The content of the file is the server in /etc/nginx/sites-available/default. Note that the fastcgi_pass item in the server enables the sock line. Comment on the 9000 line

4 Restart nginx php5-fpm

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1017049.htmlTechArticleubuntu15.04 nginx1.6.5 configure virtual host, ubuntu15.04 configuration 1 in /etc/hosts add host 2 in Add the include directory path of the virtual host configuration file to http in /etc/nginx/nginx.conf...
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