example.org
Email Address []:dom@example.org
Configuring Apache to Support SSL/TLS
Once your keys have been generated, you need to install the mod_ssl Apache module, which adds
SSL/TLS support to Apache, and then configure it using the appropriate configuration directives.
Here??™s how:
1. SSL and TLS support can be added to Apache by installing the mod_ssl package:
# apt-get install libapache-mod-ssl
# apache-modconf apache enable mod_ssl
Replacing config file /etc/apache/modules.conf with new version
2. Add an SSL-enabled virtual host to your Apache configuration files. Using the earlier
virtual host as an example, your configuration will look something like this:
Listen *:443
ServerName secure.example.org
668
Running Servers Part V
DocumentRoot /home/username/public_html/
User username
Group groupname
DirectoryIndex index.php index.html index.htm
SSLEngine On
SSLCertificateKeyFile /etc/apache/ssl.key/server.key
SSLCertificateFile /etc/apache/ssl.crt/server.crt
SSLCACertificateFile /etc/apache/ssl.crt/ca.crt
This example uses a wildcard for the IP address in the VirtualHost declaration, which
saves you from having to modify your configuration file in the event that your IP address
changes but also prevents you from having multiple SSL virtual hosts.
Pages:
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235