HTTPS in Fedora 8

Langkah-langkahnya adalah :

1. sebelum memulai pastikan service apache 2 sudah di install, jika belum insstall denga perinyah
Apt –get install openssl ssl-cert

2. Membuat certificate dengan perintah
mkdir /etc/apache2/ssl
make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem

3. setelah itu aktifkan mode ssl dan restart apache2 dengan perintah
a2enmod ssl

/etc/init.d/apache2 force-reload

4. setelah di aktifkan waktunya untuk merestart service apache2 yaitu dengan perintah
/etc/init.2/apache2 restart

5. sekarang waktunya meginstall paket tulis perintah
# yum install httpd

6. Edit file konfigurasi apache:
# vim /etc/httpd/conf/httpd.conf

Berikut beberapa konfigurasi yang perlu dilakukan:

### Section 1: Global Environment
User apache
Group apache
### Section 2: ‘Main’ server configuration
DocumentRoot “/var/www/html”
DirectoryIndex index.html index.html.var index.php
### Section 3: Virtual Hosts
# Konfigurasi virtual host
Include ./conf/vhosts.conf

7. Buat file virtual host:
# vim /etc/httpd/conf/vhosts.conf

NameVirtualHost 192.168.0.22:80
ServerAdmin admin@linuxer.local
DocumentRoot /var/www/html
ServerName linuxer.local
ServerAlias www.linuxer.local
ErrorLog logs/error_log
CustomLog logs/access_log combined
ServerAdmin admin@linuxer.local
DocumentRoot /var/www/html/fxchandraputrayana
ServerName fxchandraputrayana.local
ServerAlias www.fxchandraputrayana.local
ErrorLog logs/fxchandraputrayana.local-error_log
CustomLog logs/fxchandraputrayana.local-access_log combined
ServerAdmin admin@linuxer.local
DocumentRoot /var/www/html/bonekcyber
ServerName bonekcyber.local
ServerAlias www.bonekcyber.local
ErrorLog logs/bonekcyber.local-error_log
CustomLog logs/bonekcyber.local-access_log combined

Langkah terakhir yaitu mejalankan daemon web server untuk runlevel yang diinginkan:
# /sbin/chkconfig –levels 235 httpd on

0 komentar:

Posting Komentar

Menurut lo....??