Jump to content
The Uniform Server Community

.htaccess


lekhoi
 Share

Recommended Posts

Hello, htacess anyone? :P

 

I am having a bit of problem with the htaccess basic authentication. I have follow a demo here http://www.he.net/faq/tutorials/htaccess/demo.html

 

For the purpose of verifying a working htaccess, I have copy all files word for word like follow:

 

.htpasswd (user: john, pass: orange, user: sheri, pass: apple)

===============

john:zOSE9NzIxzoYo

sheri:bcrFMwAnWVM2A

===============

 

.htaccess

===============

AuthUserFile /www/.htpasswd

AuthName jdoe_goodstuff

AuthType Basic

<Limit GET>

require valid-user

</Limit>

===============

 

I have:

 

1. Tested this exact configuration on a live server, changing only the path of the .htpasswd to the server path -- It did works

 

2. Tried to adapt this to the uniform server -- Did not work

3. Debugged by placing htpassword everywhere I could think of, thinking that the path to the pass word file may be the problem -- Did not work

 

Thanks in advance for any help.

Link to comment
Share on other sites

or just:

 

AuthUserFile .htpasswd

659[/snapback]

 

Oh dear, just found it :)

 

1. The path to htpasswd file is correct taking the form of /www/docs/.htpasswd depending on where you want to place the .htpasswd

 

2. :P :) :D Surprise surprise, the password file is NOT encrypted. That is it would be, password in clear text.

===============

john:orange

sheri:apple

===============

and thanks to Kevin for giving a hand :-)

Link to comment
Share on other sites

Don't ask me.... lol...

 

I always wondered why also but it really does not matter.. 3.3 has a more secured .htpasswd folder for .htpasswd files.

Link to comment
Share on other sites

ko co chi

ur welcome hhe

661[/snapback]

kalimaaaa

where? where? can i have 3.3 ? ;)

666[/snapback]

How about clearing all that anime from your brain buffer before speaking?

You wouldn't like it if it overflows :) :)

 

... OMG hax0r olajideolaolorun breaks the Apache http again ...

664[/snapback]

An emoticon you forgot: :D

 

Don't ask me.... lol...

 

I always wondered why also but it really does not matter.. 3.3 has a more secured .htpasswd folder for .htpasswd files.

665[/snapback]

You can find all the examples you need here. Keep an eye out for those W:\htpasswd\ folders.

 

lol.... NO :)

 

We now have a /htpasswd/ folder for htpasswd files... :P

669[/snapback]

We're just moving all the .htpasswd files from W:\www\\ to W:\htpasswd\\, it's that simple :lol:

 

Anyway, I found this in my httpd.conf:

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
   Order allow,deny
   Deny from all
</Files>

Hmmm.. so do you care to explain why we need that htpasswd folder again, Olajide?

To make up for potential Apache bugs? :P

Edited by MrX
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...