jump to navigation

Cara membuat HTTP Form Basic Authentication May 31, 2013

Posted by puji in Catatan.
trackback

1. Di httpd.conf
<Directory “/var/www/rahasia”>
AuthType Basic
AuthName “Direktori Rahasia”
AuthUserFile /root/data/.htpasswd
Require valid-user
Order allow,deny
Allow from all
</Directory>

2. Buat file Di “.htaccess” direktori “/var/www/rahasia”

AuthType Basic
AuthName “Direktori Rahasia”
AuthUserFile /root/data/.htpasswd
Require valid-user

3. Buat user dan password di “/root/data/.htpasswd”
htpasswd -c /root/data/.htpasswd admin

Comments»

1. Cotton sliver - December 17, 2013

masih belom terlalu pahan pas bikin password nya:\

2. Lee - February 17, 2015

ini buat apaan ya?


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

%d bloggers like this: