Home >Backend Development >PHP Tutorial >Ubuntu15.04 nginx1.6.5 configure virtual host, ubuntu15.04 configuration_PHP tutorial
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