This page is about simply bash script to create a new nginx/apache v-host instance.
- Add a executable privileges
chmod +x nvhost.sh - Run script with sudo, like this:
sudo ./nvhost.sh <action> <name> - Done
Action <action> |
Description |
|---|---|
| add | Add new v-host instance |
| rem | Remove exist v-host instance |
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.
- Own domain extension
- Use sed replace echo in hosts file
- Remove v-host
- Edit v-host
- View exists site list
- Maybe Apache support
