Problem with cert creation, 301 redirect


#1

My domain is: biobankportalen.se/mymmetingdocs.com

I ran this command: certbot --nginx

It produced this output:

Failed authorization procedure. biobankportalen.se (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://biobankportalen.se/.well-known/acme-challenge/5kngHJOsBPBPupsyIeIp-WEsToquDtqdU33666gJFBA: Error getting validation data

My web server is (include version):
nginx/1.10.3 (Ubuntu)

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

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no

I think my problem is that I copied my config for a working site in the same nginx-config and also copie the 301 redirect from http->https so that the certbot request is now redirected to https before ever having had a valid cert…
I’m quite new to this so it might be that I’m totally wrong.

To make matters a bit worse, I do run multiple servers/domains on the same machine (same nginx).

Any help is greatly appreciated, please let me know if I should post any other output. Unfortunately I just ran in to “There were too many requests of a given type :: Error creating new authz :: too many failed authorizations recently”, which is why I haven’t included any more output allready.


#2

Hi,

You have a universal redirect that redirect all pages into a index.php (WordPress I guess? Or similar cms)
Please exempt .well-known from your vHost file and try again promptly.

Thank you


#3

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