- mkdir /etc/apache2/ssl
- cd /etc/apache2/sites-enabled/anwar
- edit VirtualHostnya
tambahin virtual host 443 dibawah VH 80
ServerName anwar.edu
ServerAlias www.anwar.edu
DocumentRoot /home/anwar/www
ErrorLog /var/log/apache2/anwar.edu-error.log
CustomLog /var/log/apache2/anwar.edu-access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
tambahin
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
lalu openssl req -new -x509 -days 365 -nodes -out spasi /etc/apache2/ssl/apache.pem -keyout
/etc/apache2/ssl/apache.pem
a2enmod ssl
restart apache2
0 comments:
Post a Comment
komentar anda sangat berguna bagi saya..