Skip to content

tkant/nginx-vhost-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

nginx-vhost-creator

Usage of the nginx vhost creator script :

  1. Login as root user, or the user who have access to edit the nginx configuration files and modify permissions to access to web root directory.

  2. Execute the php script by using php-cli - for example : php nginx_vhost_creater.php create examplesite.com

  3. Edit the host file which is located at /etc/hosts to point an IP to this newly created vhost. for example, I had mapped this domain to my localhost : 127.0.0.1 examplesite.com

  4. Now point your browser to the this newly created host. For ex.

http://examplesite.com

  1. You can see the phpinfo() output on the screen.

  2. Thats it!! Enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages