A dead simply script for making virtual host files for nginx reverse proxy. Virtual hosts will be with .localhost TLD. (exp. foobar.localhost, yoursite.localhost etc. )
- Run
./mkvhost -hfor help
- Simply pull the repository where you wish
- Add
mkvhost.shpermission to execute - Run
sudo ./mkvhost.sh YOUR_HOST_WITHOUT_TLD YOUR_LOCAL_PORT(exp../mkvhost.sh foobar 8080will create foobar.localhost virtual host that willproxy_passto http://localhost:8080)