Установил ssl-сертификат. Вроде все замечательно - https теперь, но
сервер регулярно ложится и панель mysite.ru/phpmyadmin
стала недоступна:
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
Посмотрите, уважаемые, что не так.
/var/log/apache2/error.log
[Thu Mar 26 07:27:25.030595 2015] [mpm_prefork:notice] [pid 1134] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.2 OpenSSL/1.0.1f configured -- resuming
normal operations
[Thu Mar 26 07:27:25.047086 2015] [core:notice] [pid 1134] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 26 07:34:22.159916 2015] [negotiation:error] [pid 1155] [client 91.221.109.101:40057] AH00687: Negotiation: discovered file(s) matching request:
/home/username/www/next-mysite/admin (None could be negotiated).
[Thu Mar 26 09:09:07.999165 2015] [mpm_prefork:notice] [pid 1163] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.2 OpenSSL/1.0.1f configured -- resuming
normal operations
[Thu Mar 26 09:09:08.024479 2015] [core:notice] [pid 1163] AH00094: Command line: '/usr/sbin/apache2'
/etc/apache2/sites-available/mysite.conf
<VirtualHost *:443>
ServerAdmin webmaster@mysite.ru
ServerName mysite.ru
ServerAlias
www.mysite.ru DocumentRoot /home/username/www/mysite
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/username/www/mysite>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
SSLEngine on
SSLCertificateKeyFile /etc/ssl/private/mysite_ru.key
SSLCertificateFile /etc/ssl/certs/mysite_ru.crt
SSLCertificateChainFile /etc/ssl/certs/mysite_ru.ca-bundle
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /document/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Require all denied
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
/etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
RewriteEngine On
RewriteCond %{HTTP_HOST} mysite\.ru
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>