[Apache] How to Fix SSL (HTTPS) Not Starting

Tadashi Shigeoka ·  Tue, September 4, 2012

After restarting Apache with apachectl restart, I encountered a problem where http worked but https didn’t.

The cause was that Apache version was 2.0.x series, and SSL support won’t be enabled unless you start with apachectl startssl or the -DSSL option.

apachectl -v
Server version: Apache/2.0.59
The startssl option in apachectl has been removed. To enable SSL support, edit httpd.conf to include the relevant mod_ssl directives, then start the server with apachectl start. An example configuration file for enabling mod_ssl is available in conf/extra/httpd-ssl.conf.

[Source]: 2.0 から 2.2 へのアップグレード - Apache HTTP サーバ

If you don’t know this, after restarting, https won’t connect and services will stop, so it might be good to edit apachectl referring to the article below.

apachectl 3分ハッキング - C#とか。 - Grim Saga Project 別館:れびんの勉強部屋

Also, instead of using an old version of Apache, you should just upgrade to a newer version.


Reference Information

シリコンバレー 24時: Apacheを 2.0 から 2.2 へアップデートすると SSLが無効になるトラブル

[仕事] Apache2.0.x→2.2.xのSSL対応について|TEAM RISE x すかの日記

That’s all from the Gemba.