Forum Moderators: phranque

Message Too Old, No Replies

.htaccess-any way?

         

shadow4

8:47 pm on Jan 9, 2006 (gmt 0)

10+ Year Member



Hello everyone,
Thanking you in advance for your knowledge and help to me.

This is my DocumentRoot "/var/www/venus"

I have edited httpd.conf in this manner for .htaccess authentication

<Directory "/var/www/venus/">
AuthType Basic
AuthName "The Venus"
AuthUserFile /var/www/venus/cgi-bin/pwd/.htpasswd
AllowOverride None
order deny,allow
allow from all
<Files "index.html">
Allow from all
Satisfy any
</Files>
require valid-user
</Directory>

Its working, index.html is also included for authentication. Will some please help me as i do not want the username&password on index.html.
Any ways?

jdMorgan

12:55 am on Jan 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just a guess, but I'd try it like this:

<Directory "/var/www/venus/">
AllowOverride None
AuthType Basic
AuthName "The Venus"
AuthUserFile /var/www/venus/cgi-bin/pwd/.htpasswd
Require valid-user
Order allow,deny
Deny from all
<Files "index.html">
Allow from all
</Files>
Satisfy any
</Directory>

Jim

shadow4

7:29 am on Jan 11, 2006 (gmt 0)

10+ Year Member



Thanks Jim
I tried it but still it prompts me on index.html
any other guess PLEASE thinking something.
Awaiting your reply

shadow4

7:37 pm on Jan 12, 2006 (gmt 0)

10+ Year Member



Sorry Jim for troubling you too much.

12:55 am on Jan 10, 2006 (utc 0)
Just a guess, but I'd try it like this:

<Directory "/var/www/venus/">
AllowOverride None
AuthType Basic
AuthName "The Venus"
AuthUserFile /var/www/venus/cgi-bin/pwd/.htpasswd
Require valid-user
Order allow,deny
Deny from all
<Files "index.html">
Allow from all
</Files>
Satisfy any
</Directory>

Jim

7:29 am on Jan 11, 2006 (utc 0)
Thanks Jim
I tried it but still it prompts me on index.html
any other guess PLEASE something.
Awaiting your reply