Shell script helps quickly create Ubuntu Nginx host for any GoLang based web project on your local machine.
- Don't use symbol "_" for local domain name.
- Open file
/etc/hosts
and add string#localhost
to the end (one-time step). - Run script under
root
user:sudo -s;sh create_host_nginx_golang.sh <your-domain-name.local> <port>;