Certbot not asking for redirect/no redirect

Certbot is not asking the usual question of "Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access." how can I return it? It just forces the redirect for me but I don't want that.. In the past I always got this prompt, but not anymore. I did reinstall certbot after removing webmin and virtualmin from my server.

I'm following this tutorial How To Secure Nginx with Let's Encrypt on Ubuntu 20.04 | DigitalOcean and after step 4 it doesn't show the prompt.

Command I run (with my own domains):

sudo certbot --nginx -d example.com -d www.example.com

Any help would be appreciated!

From the Certbot documentation:

  --redirect            Automatically redirect all HTTP traffic to HTTPS for
                        the newly authenticated vhost. (default: redirect
                        enabled for install and run, disabled for enhance)

You can use the --no-redirect option to disable redirects being added automatically.

3 Likes

I tried that but it didn't work before, for some reason it does now. Thanks!

2 Likes

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