In what way does python-certbot-nginx enable https on my site?

Please fill out the fields below so we can help you better.

I ran this command: certbot --nginx

My web server is (include version): nginx/1.12.1

The operating system my web server runs on is (include version): Ubuntu 16.04

I’m curious how does certbot enable https. I checked nginx.conf and my site’s conf file, but it still listens port 80. However, https doed work with my site. What I mean is that, certbot works fine and helped my achieved my goal, but I want to how it worked. If it did not change nginx’s conf file, how does it enable https?

Any thoughts?

Certbot does indeed edit nginx’s conf file. Note that it adds HTTPS support (and optionally a redirect) but does not disable port 80. So just seeing that the config file listens on port 80 doesn’t mean that Certbot didn’t edit the config file.

Indeed. I just did not read conf file careful enough. It seems certbot includes another file (which it created ) in the original conf file. Thx

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.