Ubuntu 13.04
Sponsored Link

Configure SSL2013/05/12

 
Configure SSL to use encrypted connection.
[1]
[2] Configure SSL
root@www:~#
vi /etc/apache2/sites-available/default-ssl
# line 3: change to webmaster's email

ServerAdmin
webmaster@srv.world
# line 11,12: change

Options FollowSymLinks
ExecCGI

AllowOverride
All
# line 42,43: change

SSLCertificateFile
/etc/ssl/private/server.crt

SSLCertificateKeyFile
/etc/ssl/private/server.key
root@www:~#
a2ensite default-ssl

Enabling site default-ssl.
Run '/etc/init.d/apache2 reload' to activate new configuration!
root@www:~#
a2enmod ssl

Enabling module ssl.
See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
service apache2 restart
root@www:~#
/etc/init.d/apache2 restart

* Restarting web server apache2
... waiting ...done.
  Access to the test page with https. Following window is shown because Certification File is made by yourdelf, it's no ploblem, Click Ok to proceed.
  Just accessed.
  Install your server's certificate on your PC, then it's possible to access with no error.
  Install the certificate.
Matched Content