Skip to content

pr0way/Nginx-vHost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VirtualHost script

This page is about simply bash script to create a new nginx/apache v-host instance.

How to use? - simply!

  1. Add a executable privileges chmod +x nvhost.sh
  2. Run script with sudo, like this: sudo ./nvhost.sh <action> <name>
  3. Done
Action <action> Description
add Add new v-host instance
rem Remove exist v-host instance
Obviously <name> is your vhost name -> full domain.

Warning

Default php version is PHP 7.2-FPM if you use other. You should change it!
Additional at the top you can edit a paths in major file.

Screenshot

sample.png

Todo:

  • Own domain extension
  • Use sed replace echo in hosts file
  • Remove v-host
  • Edit v-host
  • View exists site list
  • Maybe Apache support

About

Simply bash script to create a new nginx v-host instance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages