Я использую Ubuntu 20.04. Я создал новый сайт с WordPress, и он не работает.
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName workplace.internaldomain.de:443
Redirect permanent workplace.internaldomain.de https://workplace.internaldomain.de
DocumentRoot /var/www/html/workplace/index.php
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
Redirect permanent http://workplace.internaldomain.de https://workplace.internaldomain.de
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/STAR_internaldomain_tv.crt
SSLCertificateKeyFile /etc/apache2/ssl/star_internaldomain_2019.key
SSLCertificateChainFile /etc/apache2/ssl/CA_ov.bundle
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLOpenSSLConfCmd DHParameters /etc/apache2/ssl/dhparams.pem
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Я получаю следующую ошибку:
[Fri Feb 05 00:06:42.876912 2021] [ssl:warn] [pid 68765] AH01909: workplace.internaldomain.de:443:0 server certificate does NOT include an ID which matches the server name
[Fri Feb 05 00:06:42.877055 2021] [mpm_prefork:notice] [pid 68765] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Fri Feb 05 00:06:42.877060 2021] [core:notice] [pid 68765] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 05 00:08:14.103266 2021] [php7:warn] [pid 70293] [client 10.30.251.10:62272] PHP Warning: require(/var/www/html/workplace/wp-includes/version.php): failed to open stream: No such file or directory in /var/www/html/workplace/wp-settings.php on line 33
[Fri Feb 05 00:08:14.103340 2021] [php7:error] [pid 70293] [client 10.30.251.10:62272] PHP Fatal error: require(): Failed opening required '/var/www/html/workplace/wp-includes/version.php' (include_path='.:/usr/share/php') in /var/www/html/workplace/wp-settings.php on line 33
может кто-то, пожалуйста, помогите мне?
У вас есть дополнительная строка : 443
в конце имени вашего сервера, и это рассматривается как неверное имя сервера. Измените соответствующую линию в каждом пути:
ServerName workplace.internaldomain.de
и сделать Sudo Systemctl Restart Apache2