apache2 a ssl (debian etch)



Podle návodu na:

http://www.tim-bormann.de/index.php?section=145
http://www.debian-administration.org/articles/349

1) apt-get install openssl ssl-cert

2) mkdir /etc/apache2/ssl/

openssl req $@ -new -x509 -days 1095 -nodes -out /etc/apache2/ssl/apache-cert.pem -keyout /etc/apache2/ssl/apache-key.pem

chmod 600 /etc/apache2/ssl/apache-key.pem

3) virtual host bude začínat cca:

<VirtualHost *:443>
# SSL (START)
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache-cert.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache-key.pem
# SSL (END)

4) do /etc/apache2/ports.conf přidat řádek:
Listen 443

5) aktivovat virtual host, ssl mod:

a2ensite muj-virtual-ssl-host
a2enmod ssl

/etc/init.d/apache2 restart

Last update:
2007-05-24 15:59
Author:
Daniel
Revision:
1.3
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.