Я следую этому обучающему , чтобы настроить HTTPS на моем сайте Wordpress (www.healthiness.shop), но я больше не могу получить доступ к сайту. Как я могу это исправить?
Это /etc/apache2/sites-available/default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
DocumentRoot /var/www/html
...
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
SSLCertificateFile "/etc/letsencrypt/live/healthiness.shop/cert.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/healthiness.shop/privkey.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/healthiness.shop/chain.pem"
Это / etc / apache2 / sites-available / wordpress. conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ServerName www.healthiness.shop
ServerAlias healthiness.shop
Redirect permanent / https://www.healthiness.shop/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Когда я бегу
curl -i http://www.healthiness.shop/
Это результат
HTTP/1.1 301 Moved Permanently
Date: Sat, 04 Apr 2020 18:04:46 GMT
Server: Apache
Location: https://www.healthiness.shop/
Content-Length: 237
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.healthiness.shop/">here</a>.</p>
</body></html>
Когда я бегу
curl -i https://www.healthiness.shop/
Я не получаю ответ в консоли
Когда я запускаю
curl -i http://35.188.74.178
Я получаю нормальную html страницу
Когда я запускаю
ping healthiness.shop
Я получаю
PING healthiness.shop (35.188.74.178) 56(84) bytes of data.
^C
--- healthiness.shop ping statistics ---
50 packets transmitted, 0 received, 100% packet loss, time 50179ms
Когда я бегу
ping www.healthiness.shop
Я получаю
PING healthiness.shop (35.188.74.178) 56(84) bytes of data.
^C
--- healthiness.shop ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5126ms
Когда я бегу
filipe_ferminiano@wordpress-1-vm:~$ sudo service apache2 restart
filipe_ferminiano@wordpress-1-vm:~$ sudo service apache2 status
Я получаю
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-04-04 19:15:29 UTC; 8s ago
Process: 22132 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
Process: 10726 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Process: 22139 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 22144 (apache2)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/apache2.service
├─22144 /usr/sbin/apache2 -k start
├─22145 /usr/sbin/apache2 -k start
├─22146 /usr/sbin/apache2 -k start
├─22147 /usr/sbin/apache2 -k start
├─22148 /usr/sbin/apache2 -k start
└─22149 /usr/sbin/apache2 -k start
Apr 04 19:15:29 wordpress-1-vm systemd[1]: Stopped The Apache HTTP Server.
Apr 04 19:15:29 wordpress-1-vm systemd[1]: Starting The Apache HTTP Server...
Apr 04 19:15:29 wordpress-1-vm systemd[1]: Started The Apache HTTP Server.
Вот правила брандмауэра, которые у меня есть. Я добавил порт 443, но все еще не работает