rg305
September 17, 2021, 7:53pm
21
Ok here are the two main entries:
the creation of the challenge response file:
2021-09-17 19:29:10,992:DEBUG:certbot._internal.plugins.webroot:Attempting to save validation to
/var/www/site/.well-known/acme-challenge/Qc3j6Z4o2-HiBakpjMroKEFD6nU4t-195C7nSM_4dHo
The validation request (that failed):
"detail": "Invalid response from http://danstoncubemc.com/.well-known/acme-challenge/Qc3j6Z4o2-HiBakpjMroKEFD6nU4t-195C7nSM_4dHo [141.94.96.56]: \"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"fr\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"utf-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initia\"",
We need to find out why it fails and fix it.
First we need to simulate a challenge file.
[do these three steps]
mkdir /var/www/site/.well-known
mkdir /var/www/site/.well-known/acme-challenge
echo TestFile1234 > /var/www/site/.well-known/acme-challenge/Test-File-1234
Then we test it with:
http://danstoncubemc.com/.well-known/acme-challenge/Test-File-1234
Okok, I make step by step this and I test http://danstoncubemc.com/.well-known/acme-challenge/Test-File-1234 . I got 404 error. I think it's maybe the .htaccess of rewrite mode do this.
The .htaccess of my website is :
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
</IfModule>
I don't know if this can help you but you got.
Up! I disabled the Rewrite Engine and I get a blank page with "TestFile1234"
Maybe the .htaccess is the mistake ?
1 Like
rg305
September 17, 2021, 11:09pm
24
I think so.
I'm not too familiar with .htaccess
files; and this one does a bit more than usual.
rg305
September 17, 2021, 11:12pm
25
This:
Seems to be conflicted by this:
and this:
Where did you get that .htaccess
file?
I get this .htaccess at /var/www/site (the root of my website)
He was created with the CMS what I'm using.
Okok, what can I have to do for resolve that ?
rg305
September 18, 2021, 5:12pm
27
I don't know about what the CMS needs, so I can't say for that.
But for LE to work, I think you don't need any of that file.
system
Closed
October 18, 2021, 5:13pm
28
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.