Saturday, August 3, 2013

How to install the Apache mod_ssl module on CentOS

mod_ssl









mod_ssl is an Apache module that provides SSL v2/v3 and TLS v1 support for the Apache HTTP Server.  See the mod_ssl documentation for more information.

How to install the Apache mod_ssl module


1. Run the mod_ssl install command
yum install mod_ssl

How to configure the Apache mod_ssl module


1. Open the mod_ssl Apache configuration file located at /etc/httpd/conf.d/ssl.conf



#nano /etc/httpd/conf.d/ssl.conf

2. Enable name-based virtual hosting on port 443
Add the following text just before the SSL Virtual Host Context comment
# Use name-base virtual hosting

<VirtualHost *:443>

3. Disable the default https host
Comment out all text following the SSL Virtual Host Context comment

4. Restart the Apache HTTP Server
service httpd restart





No comments:

Post a Comment