$ systemctl status nginx.service && journalctl -xeu nginx.service
In this case, if you have nginx on your server running portable, do this magic stuff.
$ sudo certbot --nginx --config-dir /opt/myapp/share/nginx/certs -d myapp.example.com
to kill existing running port of 80
$ sudo fuser -k 80/tcp
Restart your nginx
$ sudo systemctl stop nginx
$ sudo systemctl start nginx
Test your domain now https://myapp.example.com
Source :
https://www.google.com/search?q=certbot+generate+certificate+nginx+custom+path

Comments
Post a Comment