Apache HTTPS Configuration

Description of HTTPS configuration on honir.softxs.ch

General Notes

This description is applicable (tested) on FreeBSD 7.2 and 8.0, in an apache virtual host environment, where the same certificate is used for all virtual hosts.

Setup New DNS Name

Not needed. Use *.softxs.ch as common name.

Setup Certificates

OpenSSL should be installed. Use port security/openssl if CA.pl is not found.

Use everywhere "apache2" instead of "apache22" on older FreeBSD if appropriate.

Update /etc/rc.conf

Update /usr/local/etc/apache22/httpd.conf

Remove comments from httpd-vhosts.conf and httpd-ssl.conf

Update /usr/local/etc/apache22/extra/httpd-ssl.conf

Move and set all common SSL settings outside(!!!) the section <VirtualHost _default_:443>. This section is unused:

All changes:

Update /usr/local/etc/apache22/extra/httpd-vhosts.conf

Add named virtual host option for port 443, and for all virtual host a VirtualHost and a Directory section. Example:

All changes (virtual hosts lu.softxs.ch and coya2.softxs.ch, both are enabled on HTTP and HTTPS):

HttpsConfigurationFreeBSD (last edited 2010-03-11 12:28:05 by 183-56-172)

Copyright 2008-2014, SoftXS GmbH, Switzerland