--- Ronny Haryanto <[EMAIL PROTECTED]> wrote:

> On Friday 20 January 2006 21:23, Ery Atmodjo wrote:
> > Sy mencoba protek folder web dengan menaruh file
> > .htaccess di folder yang mau diprotek, trus buat
> file
> > .htpasswd yg sudah diisi dengan username dan
> password.
> 
> Isinya .htaccess tepatnya apa? Dan anda letakkan
> tepatnya di mana? Tolong 
> kasih full absolute pathnya.
> 
> > File httpd.conf juga sudah saya set AllowOvveride
> All
> > di direktiv yang sesuai dengan root direktori web.
> 
> Tepatnya gimana? Paste aja ke sini satu blok gitu yg
> relevan jadi bisa 
> langsung dilihat, biar kita gak pake nebak2.
> 
> > Waktu saya coba browsing, halaman dimaksud
> langsung
> > tampil di browser, tanpa minta username dan
> password.
> 
> Ada pesan di log ndak?
> 
> > Cara yang sama saya coba di rh9 berhasil, tapi di
> > gentoo koq tidak ya.
> 
> Ya masing2 ada bedanya. Baiknya dipahami cara
> kerjanya dan perbedaannya.
> 
> Makanya saya gak pernah suka step-by-step, begitu
> berubah dikit aja sikonnya 
> langsung gak berlaku deh itu step-by-step.
> 
> Ronny
> 

Maaf baru balas.

Direktori web yang mau saya proteksi : 

/var/www/localhost/hdocs/limitedaccess/

Di apache2.conf sbb :

<Directory "/var/www/localhost/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

AccessFileName .htacces


file .htaccess di direktori
/var/www/localhost/htdocs/limitedaccess :

AuthUserFile /home/secret/.htpasswd
AuthName "My secret web page"
AuthType Basic
require user ery


file .htpasswd di /home/secret/.htpasswd
ery:sR4boa6a.MzeY



Terima kasih sebelumnya.

Salam

Ery


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke