Mod_Userdir & menggunakan SSL pada Apache HTTP Server (Modul 2)

Mod_Userdir disini memfasilitasi user agar dapat memiliki wep pagenya sendiri.

caranya :

$ a2enmod userdir

                $ nano /etc/apache2/mods-enabled/userdir.conf

konfigurasi apachenya diganti dengan code ini.

<IfModule mod_userdir.c>
                UserDir public_html
                UserDir disabled root
                <Directory /home/*/public_html>
                AllowOverride All
                Options MultiViews Indexes SymLinksIfOwnerMatch
                <Limit GET POST OPTIONS>
                                Order allow,deny
                                Allow from all
                </Limit>
                <LimitExpect GET POST OPTIONS>
                                Order deny,allow
                                Deny From all
                </LimitExcept>
</Directory>
</IfModule>
 
 

menggunakan SSL pada Apache HTTP Server :self-signed-certificate.

  1. a2enmod ssl
  2. openssl req -new > new.ssl.csr
  3. jawab pertanyaan yang muncul
  4. openssl rsa -in privkey.pem -out new.cert.key

    openssl x509 -in new.ssl.csr -out new.cert.new.ssr.csr -req -signkey new.cert.key -days (berapa jumlah hari)

    cp new.cert.cert /etc/ssl/certs/server.crt

    cp new.cert.key /etc/ssl/private/server.key

  5. konfigurasi apache

$ nano /etc/apache2/sites-availabel/default

kemudian tambahkan code ini:

SSLEngine on
SSLOptions +StrictRequire
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key

6. lakukan restart

$ service apache2 restart

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s