letsencrypt_certbot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
letsencrypt_certbot [2024/05/20 14:46]
val [Настройка DNS]
letsencrypt_certbot [2025/09/30 11:26] (current)
val [Настройка SSL для сайта]
Line 6: Line 6:
 ===== Настройка DNS ===== ===== Настройка DNS =====
 <​code>​ <​code>​
-$ host host3.mgtu.ru+$ host host4.mgtu.ru
 host3.mgtu.ru has address 195.19.40.152 host3.mgtu.ru has address 195.19.40.152
 </​code>​ </​code>​
  
 ===== Создание сайта ===== ===== Создание сайта =====
 +
 +  * [[Сервис HTTP#​Использование виртуальных хостов]]
 +
 <​code>​ <​code>​
 val@val:~$ mkdir hostN.mgtu val@val:~$ mkdir hostN.mgtu
Line 54: Line 57:
 And make it available on your web server at this URL: And make it available on your web server at this URL:
  
-http://val.mgtu.ru/​.well-known/​acme-challenge/​NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN+http://hostN.mgtu.ru/​.well-known/​acme-challenge/​NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
 ... ...
 Press Enter to Continue Press Enter to Continue
Line 84: Line 87:
  
 ===== Настройка SSL для сайта ===== ===== Настройка SSL для сайта =====
 +
 +  * [[Сервис HTTP#​Поддержка протокола HTTPS]]
  
 <​code>​ <​code>​
Line 99: Line 104:
     SSLCertificateFile /​etc/​letsencrypt/​live/​hostN.mgtu.ru/​fullchain.pem     SSLCertificateFile /​etc/​letsencrypt/​live/​hostN.mgtu.ru/​fullchain.pem
     SSLCertificateKeyFile /​etc/​letsencrypt/​live/​hostN.mgtu.ru/​privkey.pem     SSLCertificateKeyFile /​etc/​letsencrypt/​live/​hostN.mgtu.ru/​privkey.pem
-</​VirtualHost>​+  ​</​VirtualHost
 +</​IfModule>
 </​code><​code>​ </​code><​code>​
 root@val:~# apachectl -t root@val:~# apachectl -t
letsencrypt_certbot.1716205597.txt.gz · Last modified: 2024/05/20 14:46 by val