A
A
Andrey Makarov2019-09-04 15:39:17
Apache HTTP Server
Andrey Makarov, 2019-09-04 15:39:17

What's wrong with a vps site or Let's Encrypt on CentOS 7 + Apache?

I'm trying to get a free certificate for the site, installed certbot and do everything step by step. at the end he asks:

Create a file containing just this data:
1JmJ_w2r4yHVHspEY2l_rySxCeXA6ne5s8MppeGYnd4.HaAEgrTkssR4VJP8AsSRJgw1pueGlIKiJWQei0Bie_k
And make it available on your web server at this URL:
tendek.ru/.well-known/acme-challenge/1JmJ_w2r4yHVH...

Naturally, I do everything, but an error 404 appears
For example: tendek.ru/.well-known/acme-challenge
1JmJ_w2r4yHVHspEY2l_rySxCeXA6ne5s8MppeGYnd4 - does not open, although the file in the desired folder has been created
5d6fb0236b258286068159.png
Yes, and in general, any file from this folder does not open
in htaccess only this
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Upd:
went the other way:
[[email protected]______ ~]# ./certbot-auto certonly --webroot --agree-tos --email [email protected] -w /var/www/www-root/data/www/ -d tendek.ru -d www.tendek.ru

Answer:
Domain: tendek.ru                                                                                                                                                       
   Type:   unauthorized                                                                                                                                                    
   Detail: Invalid response from                                                                                                                                           
   http://tendek.ru/.well-known/acme-challenge/mu1miuoXAZS35qo8E5lxN_qjdNKSZvqtBsOs6bnTdfI                                                                                 
   [62.109.26.66]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML                                                                                                              
   2.0//EN\">\n<html><head>\n<title>404 Not                                                                                                                                
   Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"

again this file is not available

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Andrey Gavrilov, 2019-09-05
@thexaver

This is isp manager, you can immediately get a certificate out of the box
https://doc.ispsystem.ru/index.php/%D0%98%D0%BD%D1...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question