| 1 | {{{ |
| 2 | trac-pool:~# apt-get install ssl-cert openssl |
| 3 | trac-pool:~# a2enmod ssl |
| 4 | trac-pool:~# mkdir /etc/apache2/ssl |
| 5 | trac-pool:~# make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem |
| 6 | trac-pool:~# cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl |
| 7 | trac-pool:~# ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/ssl |
| 8 | trac-pool:~# vi /etc/apache2/sites-available/default |
| 9 | }}} |
| 10 | {{{ |
| 11 | #!diff |
| 12 | --- /etc/apache2/sites-available/default.bak 2008-07-16 17:23:51.000000000 +0800 |
| 13 | +++ /etc/apache2/sites-available/default 2008-07-16 17:24:22.000000000 +0800 |
| 14 | @@ -1,5 +1,5 @@ |
| 15 | -NameVirtualHost * |
| 16 | -<VirtualHost *> |
| 17 | +NameVirtualHost *:80 |
| 18 | +<VirtualHost *:80> |
| 19 | ServerAdmin webmaster@localhost |