Configurazione apache2 in ssl: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Aggiungere in ports.conf la porta 443: | Aggiungere in ports.conf la porta 443: | ||
echo Listen 443 | sudo tee -a | echo Listen 443 | sudo tee -a /etc/apache2/ports.conf > /dev/null | ||
Creare il certificato SSL con la chiave SENZA PASSWORD | Creare il certificato SSL con la chiave SENZA PASSWORD | ||
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem | |||
Sistemare le permission | |||
chmod 600 /etc/apache2/apache.pem | |||
metterli in | |||
/etc/apache/ssl/nomecertificato.crt | /etc/apache/ssl/nomecertificato.crt | ||
/etc/apache/ssl/nomechiave.pem | /etc/apache/ssl/nomechiave.pem | ||
| Line 27: | Line 34: | ||
==Riferimenti== | ==Riferimenti== | ||
*[https://help.ubuntu.com/community/forum/server/apache2/SSL Ubuntu Doc forum/server/apache2/SSL] | *[https://help.ubuntu.com/community/forum/server/apache2/SSL Ubuntu Doc forum/server/apache2/SSL] | ||
*[http://www.debianadmin.com/install-and-configure-apache2-with-php5-and-ssl-support-in-debian-etch.html Install and Configure Apache2 with PHP5 and SSL Support in Debian Etch -- Debian Admin] | |||
Revision as of 13:50, 20 August 2007
Aggiungere in ports.conf la porta 443:
echo Listen 443 | sudo tee -a /etc/apache2/ports.conf > /dev/null
Creare il certificato SSL con la chiave SENZA PASSWORD
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
Sistemare le permission
chmod 600 /etc/apache2/apache.pem
metterli in /etc/apache/ssl/nomecertificato.crt /etc/apache/ssl/nomechiave.pem
Definire il virtual host ssl
sudoedit /etc/apache2/sites-available/www.nomehost.tld.conf
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin webmaster@nomehost.tld
ServerName www.nomehost.tld
SSLEngine On
DocumentRoot /var/www/www.nomehost.tls
SSLCertificateFile /etc/apache2/ssl/nomecertificato.crt
SSLCertificateKeyFile /etc/apache2/ssl/nomechiave.pem
</VirtualHost>