kingpabel blog nginx virtual host

Nginx Virtual Host

Nginx is a server for run php.Most of the php developer know php server as apache also most of the shared hosting use apache as php server.But nignx is more more than faster and light than apache.For use nginx need to be create a virtual host.In this article we know how to create a nginx virtual host.For create follow this.Fist go to this directory and open that file


After opening file put the below line for create nginx virtual host

Nginx Virtual Host

Then open /etc/hosts file,and set ip for this host	newCreatedVirtualHost

Then run nginx restart from terminal,to get this nginx virtual host.

By using this code you can also get access your phpmyadmin by clicking host/phpmyadmin.So this is the system to create nginx virtual host.