Код: Выделить всё
MegaServer:/etc/apache2/ssl# service apache2 restart
Restarting web server: apache2Action 'start' failed.
The Apache error log may have more information.
failed!
MegaServer:/etc/apache2/ssl#Для логов был поставлен уровень "debug", но ничего существенного туда не пишется:
Код: Выделить всё
vim /var/log/apache2/error.log
[Thu Feb 24 15:14:25 2011] [info] Init: Seeding PRNG with 0 bytes of entropy
[Thu Feb 24 15:14:25 2011] [info] Loading certificate & private key of SSL-aware server
[Thu Feb 24 15:14:25 2011] [debug] ssl_engine_pphrase.c(470): unencrypted RSA private key - pass phrase not required
[Thu Feb 24 15:14:25 2011] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Thu Feb 24 15:14:25 2011] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Thu Feb 24 15:14:25 2011] [info] Init: Initializing (virtual) servers for SSL
[Thu Feb 24 15:14:25 2011] [info] Configuring server for SSL protocol
[Thu Feb 24 15:14:25 2011] [debug] ssl_engine_init.c(465): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)
[Thu Feb 24 15:14:25 2011] [debug] ssl_engine_init.c(420): Configuring TLS extension handling
[Thu Feb 24 15:14:25 2011] [debug] ssl_engine_init.c(792): Configuring RSA server certificate
[Thu Feb 24 15:14:25 2011] [debug] ssl_engine_init.c(831): Configuring RSA server private keyЭто происходит при следующей конфигурации mod_ssl:
Код: Выделить всё
MegaServer:/etc/apache2/ssl# cat /etc/apache2/mods-available/ssl.conf
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /var/log/apache2/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
SSLSessionCache shmcb:/var/run/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
</IfModule>
MegaServer:/etc/apache2/ssl#Если SSLEngine изменить на Off - все заработает.
Как можно диагностировать проблему в таком случае?