Can't access site with www, but works without www

Posted April 24, 2020 539 views

I just noticed that certbot had failed its renewal, and when running certbot manually I was able to renew certificate on 1:, but when trying to renew 2: I get the error:

Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [2607:f8b0:400f:800::2013]: "<!DOCTYPE html>\n<html lang=en>\n  <meta charset=utf-8>\n  <meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=dev"

When opening in the browser I get a 404 error from google:

404. That’s an error.

The requested URL /login was not found on this server. That’s all we know. 

But, works fine (without www). I apparently have no idea what I’m doing.

I’m running the ubuntu droplet with apache. Any thoughts?

edited by MattIPv4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Turns out I’m really stupid! I had messed up the DNS records