P
postcd
Hello,
i used Dynamic Drive: .htaccess password generator to generate code for .htaccess and .htpasswd
and i pasted it into my folder
but its not protected, no password prompt
htaccess
Code:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
require valid-user
htpasswd
Code:
sss:iijBraotwn1Mg
/home/mysite/.htpasswd i made double sure its correct folder.
here it is
Code:
[root@vps munin]# pwd
/var/www/munin
[root@vps munin]# ls -la
total 40
drwxr-xr-x 4 munin munin 4096 Apr 2 20:16 .
drwxr-xr-x 8 munin munin 4096 Apr 2 19:21 ..
-rw-r--r-- 1 munin munin 127 Apr 2 20:16 .htaccess
-rw-r--r-- 1 munin munin 20 Apr 2 20:16 .htpasswd
drwxr-xr-x 2 munin munin 4096 Apr 2 19:01 cgi
-rw-r--r-- 1 munin munin 2555 Apr 2 19:00 definitions.html
-rw-r--r-- 1 munin munin 1464 Apr 2 20:15 index.html
drwxr-xr-x 2 munin munin 4096 Apr 2 19:00 localhost
-rw-r--r-- 1 munin munin 473 Apr 2 19:00 logo.png
-rw-r--r-- 1 munin munin 3538 Apr 2 19:05 style.css
its there, but not show up any password window on that page..
Continue reading...
i used Dynamic Drive: .htaccess password generator to generate code for .htaccess and .htpasswd
and i pasted it into my folder
but its not protected, no password prompt
htaccess
Code:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/.htpasswd
AuthGroupFile /dev/null
require valid-user
htpasswd
Code:
sss:iijBraotwn1Mg
/home/mysite/.htpasswd i made double sure its correct folder.
here it is
Code:
[root@vps munin]# pwd
/var/www/munin
[root@vps munin]# ls -la
total 40
drwxr-xr-x 4 munin munin 4096 Apr 2 20:16 .
drwxr-xr-x 8 munin munin 4096 Apr 2 19:21 ..
-rw-r--r-- 1 munin munin 127 Apr 2 20:16 .htaccess
-rw-r--r-- 1 munin munin 20 Apr 2 20:16 .htpasswd
drwxr-xr-x 2 munin munin 4096 Apr 2 19:01 cgi
-rw-r--r-- 1 munin munin 2555 Apr 2 19:00 definitions.html
-rw-r--r-- 1 munin munin 1464 Apr 2 20:15 index.html
drwxr-xr-x 2 munin munin 4096 Apr 2 19:00 localhost
-rw-r--r-- 1 munin munin 473 Apr 2 19:00 logo.png
-rw-r--r-- 1 munin munin 3538 Apr 2 19:05 style.css
its there, but not show up any password window on that page..
Continue reading...