Wednesday, October 30, 2013

Enable Apache SSL in Ubuntu

Enable Apache SSL in Ubuntu

SSL (Secure Sockets Layer) is the standard security technology for establishing an encrypted link between a web server and a browser. This link ensures that all data passed between the web server and browsers remain private and integral. SSL is an industry standard and is used by millions of websites in the protection of their online transactions with their customers.

The following tutorial will tell you how to configure apache with SSL and browse your website using https protocol. In ubuntu its pretty easy and the steps are as follows.

In ubuntu open a terminal and login as root and run the following commands

1. install apche2 webserver
apt-get install apache2

2. Browse to the following directory using

cd  /etc/apache2/mods-available/
3. Enable the SSL module for apache using
a2enmod ssl
4. Now browse through the following directory
cd /etc/apache2/sites-available/
5. And enable the defaulf virtual host with SSL using
a2ensite default.ssl
6. Now restart the webservice for the changes to take effect
service apache2 restart
To confirm if all went well just open the firefox browser and type the following URL in the address bar.

If the default webpage is loaded then you have successfully installed and configured apache2 with SSL support.

No comments:

Post a Comment