User Tools

Site Tools


apache2_ssl_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
apache2_ssl_debian [2012/08/01 04:22] – created memeruizapache2_ssl_debian [2012/08/01 04:46] memeruiz
Line 1: Line 1:
-====== apache2 + ssl + debian ======+====== apache2 + ssl + debian + virtual hosts ======
  
   * Install apache2   * Install apache2
Line 27: Line 27:
  
   * Edit this files and only leave the certificate key in the .pem file and the private key in the .key file   * Edit this files and only leave the certificate key in the .pem file and the private key in the .key file
 +  * Then edit /etc/apache2/sites-available/defaul-ssl and change to this:
 +
 +  SSLCertificateFile /etc/apache2/ssl/apache.pem
 +  SSLCertificateKeyFile /etc/apache2/ssl/apache.key
 +
 +  * Change permissions of the private key
 +
 +  sudo chmod 600 /etc/apache2/ssl/apache.key
 +
 +  * Restart again
 +
 +  sudo /etc/init.d/apache2 restart
 +
 +  * Disable http port. Edit /etc/apache2/ports.conf and comment:
 +
 +  #NameVirtualHost *:80
 +  #Listen 80
  
  
apache2_ssl_debian.txt · Last modified: 2021/02/01 05:55 by 127.0.0.1