The 'configobj' distribution was not found and is required by certbot

So all the sites are disabled and apache starts up fine.

1 Like

Enable the ones you need OR create whatever is needed and enable those.

Note: You will need a working HTTP site before you can secure it (via HTTP authentication).

1 Like

Thanks Rudy. That worked. But it mucked with my Rewrite rules.
http://vitaltheatre.org, http://www.vitaltheatre.org, https://vitaltheatre.org
are all supposed to redirect to:
https://www.vitaltheatre.org

For some reason I'm getting stuck at:
https://vitaltheatre.org/

2 Likes

Where do you enforce the rewrites?
[within vhost configs OR .htaccess OR both]

1 Like

vhosts only. no .htaccess

RewriteEngine on
RewriteCond %{SERVER_NAME} =website.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

1 Like

How is certbot picking up other domain names in the certificate??

https://www.sslshopper.com/ssl-checker.html#hostname=www.vitalswizardofoz.com

If you want to force them all to that one particular name, then use the name instead of using %{SERVER_NAME}
Like:

RewriteEngine on
RewriteCond %{SERVER_NAME} =EXAMPLE.org
RewriteRule ^ https://www.EXAMPLE.org%{REQUEST_URI} [END,NE,R=permanent]
2 Likes

Apache is still not redirecting from https://vitaltheatre.org/

with
RewriteEngine on
RewriteCond %{SERVER_NAME} =vitaltheatre.org
RewriteRule ^ https://www.vitaltheatre.org%{REQUEST_URI} [END,NE,R=permanent]

RewriteEngine on
RewriteCond %{SERVER_NAME} =www.vitaltheatre.org
RewriteRule ^ https://www.vitaltheatre.org%{REQUEST_URI} [END,NE,R=permanent]

and this
RewriteEngine on
RewriteCond %{SERVER_NAME} =vitaltheatre.org
RewriteRule ^ https://www.vitaltheatre.org%{REQUEST_URI} [END,NE,R=permanent]

RewriteEngine on
RewriteCond ^ https://vitaltheatre.org
RewriteRule ^ https://www.vitaltheatre.org%{REQUEST_URI} [END,NE,R=permanent]

the common name in the certificate does not match

https://www.sslshopper.com/ssl-checker.html#hostname=vitaltheatre.org

1 Like

Try (with "www"):
https://www.sslshopper.com/ssl-checker.html#hostname=www.vitaltheatre.org

And also please show the output of:
certbot certificates

I think I overlooked your HTTPS redirection requested.
Unfortunately, you can't redirect HTTPS to anything else without first having a certificate for that name.
So, let's fix that.

2 Likes

On reread, I'm not sure how/if you are yet able to use certbot.

We need to fix that first.

Please show:
which certbot
certbot certificates
certbot --version

1 Like

certbot seems to be working fine now but it only gave me a certificate for one.

-----BEGIN CERTIFICATE-----
MIIFJTCCBA2gAwIBAgISBJZAMvnCUTA0YI4jAAIkcIuAMA0GCSqGSIb3DQEBCwUA
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
EwJSMzAeFw0yMTExMTQxMTA1MDRaFw0yMjAyMTIxMTA1MDNaMBsxGTAXBgNVBAMT
EHZpdGFsdGhlYXRyZS5vcmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQCuexIGGH69+R7sZXgLgS4/qkOgd37ueqitrWXiVZmQih/5qKyatdEmUWbIBg4i
YsX5qv2MUEtmv4GpmQUfPsZrWUQGjWg18woEgfk64a/a59VPyjV+zbde6QaLCTg8
6pZ+6P8dGFa7HDH0YAhhpWqkpfukMtKWcPOkYFcNHTrIQiaH7pWozZcZvL/E4FcL
jDkurlm8aFE0Xxfwaa7yWWzME3H/IfEHdSKSAxMOZnNoXuFmi4Cn8hMAjURfqw15
FlrGVJerYgh6H5bIDyohXe40xiCo7uEmQZcxhDr20i+XaOa5BdyCQCn8x074JxIw
Gm6y2VsZB7482vDufBp/umARAgMBAAGjggJKMIICRjAOBgNVHQ8BAf8EBAMCBaAw
HQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYD
VR0OBBYEFBbXy+/8xmXdZFVnUSCxJzPi1p6XMB8GA1UdIwQYMBaAFBQusxe3WFbL
rlAJQOYfr52LFMLGMFUGCCsGAQUFBwEBBEkwRzAhBggrBgEFBQcwAYYVaHR0cDov
L3IzLm8ubGVuY3Iub3JnMCIGCCsGAQUFBzAChhZodHRwOi8vcjMuaS5sZW5jci5v
cmcvMBsGA1UdEQQUMBKCEHZpdGFsdGhlYXRyZS5vcmcwTAYDVR0gBEUwQzAIBgZn
gQwBAgEwNwYLKwYBBAGC3xMBAQEwKDAmBggrBgEFBQcCARYaaHR0cDovL2Nwcy5s
ZXRzZW5jcnlwdC5vcmcwggEDBgorBgEEAdZ5AgQCBIH0BIHxAO8AdQDfpV6raIJP
H2yt7rhfTj5a6s2iEqRqXo47EsAgRFwqcwAAAX0eVi7xAAAEAwBGMEQCIB5+GbSc
8Zm/+l01psmj9QJB3GSmf/e+dbML/68FG3KnAiBnXR7tLqGO4U0PLMeZF0WUHo3F
0njGKAR57IDilhQplwB2AEalVet1+pEgMLWiiWn0830RLEF0vv1JuIWr8vxw/m1H
AAABfR5WL48AAAQDAEcwRQIhAOcuqxD9u5wbMifD7QvyyzlqGq6RYSTxk7RwRM9P
ugHHAiBZMMeowTZaWDWseJwgoKYym9qlb47ysL0ZavghcmR9tDANBgkqhkiG9w0B
AQsFAAOCAQEAt54DURNz86B5gB7NMsNYrC+yLQT8WOArojxPfOHBhFjKdQTWs1gx
DkUN9cBQdsQ4UqZvVTw+HYgM14k3OiyWEooQdyfFY34IWLtcJpZpdvpo2CamGrqh
8ngpmuebFeUhf3VSi/su0XQ4eGVjpgvmPoy4he3EGAuTvfVv1ZZ7tIusWSNp6Qtc
VTGvfmZdUmb667fC6NjfUVF38oqQX1HBK2znAQ1MhOQQaofSP+FzOZNEtBE63bxj
xQ99GPCQlZhk7ZRFLFujLchNUWKZOe/WUXrBg9icFkK5EEw7NWg57WyyN1FbB4Rq
lhtqWYNDW7A4pAiUrniw++J9k3vKQANTGg==
-----END CERTIFICATE-----

1 Like

Have to take a break. I'll be back.

1 Like

When you get back, please show the certbot command that issued that cert:

1 Like

all vitaltheatre.org variations seem to be pointing to https://www.vitaltheatre.org now. I did rerun the certbot program and received a certificate for both vitaltheatre.org and www.vitaltheatre.org.

the certbot command I ran was:
sudo /snap/bin/certbot --apache

1 Like

Perfect, now all cases are covered :slight_smile:

Cheers from Miami :beers:
#FreeCUBA :cuba:

1 Like

I still have to reconfigure all my other sites but THANK YOU. Next time I'm in Miami I'll take you out for a single malt and a Ramon Allones Superiores!

2 Likes

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