Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.htaccess

Featured Replies

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.

Try

AuthUserFile W:\www\.htpasswd
AuthName jdoe_goodstuff
AuthType Basic
<Limit GET>
require valid-user
</Limit>

 

And make sure: W:\www\.htpasswd is valid :P

  • Author
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 :-)

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

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.