Tuesday, April 18, 2006

Setting autentikasi apache 2 dengan mysql di Ubuntu

Install :
apt-get install libapache2-mod-auth-mysql
 

Berikut ini spesifik untuk kasus saya yg mungkin berbeda dengan Anda.

Edit file /etc/apache2/sites-available/ssl-default

Kira-kira sebagian isinya seperti ini :

    Auth_MySQL_Info 192.168.2.4 "www-data" w
    Alias /svnadmin/ "/var/www/svnadmin/"
    <Directory "/var/www/svnadmin/">
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 192.168.2.0/255.255.255.0
        AuthMYSQL on
        AuthMySQL_Authoritative on
        Auth_MySQL_DB http_auth
        Auth_MySQL_Empty_Passwords off
        AuthName "Subversion user admin"
        AuthType Basic
        require valid-user
    </Directory>

Posisi Auth_MySQL_Info harus diluar <Directory>.
 

 

1 comment:

qqlt8gktf78 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.