Post-installation redirect question

I just ran certbot on a linux nginx server. the installation was just beautifully simple. I played around with it a year or two ago, and it was not bad. but now it was just perfect. thank you, letsencrypt team

I have one question only. my site is working so well that I would like to change my answer from 1 to 2 in

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1

it would be ideal if certbot could recommend at this prompt exactly how to rerun this.

  • is the recommended way to uninstall certbot and do it again?
  • to run certbot --nginx again?
  • to do something else?

ideally, there could even be a command line script that can do and undo this.

Hi @iaw4

check the documentation:

https://certbot.eff.org/docs/using.html#certbot-command-line-options

--redirect and --no-redirect - then the redirect is created.

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