Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

htaccess problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  logrotate problem  
Author Message
nospam219

External


Since: Sep 01, 2004
Posts: 9



(Msg. 1) Posted: Wed Sep 01, 2004 3:35 pm
Post subject: htaccess problem
Archived from groups: alt>apache>configuration (more info?)

hi all
i created .htpasswd and then .htaccess in my dir

i wrote this in .htaccess

AuthUserFile /var/www/html/.htpasswd
AuthName "Insert user and pass"
AuthType Basic

<Limit GET>
require user admin
</Limit>

.... now i insert user and pass in authorization window but i can't access

can you help me?

 >> Stay informed about: htaccess problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Sep 01, 2004 3:35 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-01, j0sh <nospam RemoveThis @pixael.com> wrote:
 > AuthUserFile /var/www/html/.htpasswd

Is bad practice to put the password file in the same www tree.

 > ... now i insert user and pass in authorization window but i can't access

Check in the error_log what's the exact error.

Davide

--
Pushing 40 is exercise enough.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: htaccess problem 
Back to top
Login to vote
nospam219

External


Since: Sep 01, 2004
Posts: 9



(Msg. 3) Posted: Wed Sep 01, 2004 6:11 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > On 2004-09-01, j0sh <nospam RemoveThis @pixael.com> wrote:
 >
  >>AuthUserFile /var/www/html/.htpasswd
 >
 >
 > Is bad practice to put the password file in the same www tree.

sure... the document_root is another Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
nospam219

External


Since: Sep 01, 2004
Posts: 9



(Msg. 4) Posted: Wed Sep 01, 2004 6:20 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 >
 > Check in the error_log what's the exact error.

no error founded :-/<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
troloo

External


Since: Sep 01, 2004
Posts: 4



(Msg. 5) Posted: Wed Sep 01, 2004 8:24 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Check in the error_log what's the exact error.

Yes ... I have the same problem - I installed Apache 1.3.31 but in my
case under Windows Sad Everything except restricting access works ;(

These are my logfiles:

Access:
xxx.xxx.xxx.xxx - testuser [01/Sep/2004:17:08:36 +0200] "GET
/aaa/index.php HTTP/1.1" 401 482

Error:
[Wed Sep 01 17:08:36 2004] [error] [client xxx.xxx.xxx.xxx] user
testuser: authentication failure for "/aaa/index.php": password mismatch

In my httpd.conf I have the followin code:

<Directory (...)/Apache/htdocs/aaa>
  AuthType Basic
  AuthName "By Invitation Only!"
  AuthUserFile "(...)/Apache/.htpasswd"
  Satisfy All
  Require user testuser
</Directory>

I generated my password file at least 4 times... still doesn't work.

Do you have any suggestions??

--
Greetings - TroLoo<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Wed Sep 01, 2004 10:01 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-01, TroLoo <troloo.TakeThisOut@zamoyski.edu.pl.REMOVE.IT> wrote:
 > testuser: authentication failure for "/aaa/index.php": password mismatch

The password is wrong or you generated it with the wrong program

 > I generated my password file at least 4 times...

How?

Davide

--
Reality is a cop-out for people who can't handle drugs.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
troloo

External


Since: Sep 01, 2004
Posts: 4



(Msg. 7) Posted: Thu Sep 02, 2004 2:05 am
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
  >>I generated my password file at least 4 times...
 > How?

With this tool:
<a style='text-decoration: underline;' href="http://www.euronet.nl/~arnow/htpasswd/" target="_blank">http://www.euronet.nl/~arnow/htpasswd/</a>

using this tutorial:
<a style='text-decoration: underline;' href="http://wsabstract.com/howto/htaccess.shtml" target="_blank">http://wsabstract.com/howto/htaccess.shtml</a>

I found this kind of generator on some other website and it's all the
same. Yep, I think the easiest way will be using some nice, advanced PHP
script. Thanks anyway.

--
Greetings - TroLoo<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 8) Posted: Thu Sep 02, 2004 9:00 am
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-01, TroLoo <troloo.RemoveThis@zamoyski.edu.pl.REMOVE.IT> wrote:
 > same. Yep, I think the easiest way will be using some nice, advanced PHP
 > script. Thanks anyway.

Naw, the _correct_ way is to use the htpasswd tool that is shipped with
Apache itself. If apache can't understand the password that is written
in the password file there are different possibilities: he is using the
wrong authentication scheme (he espect password encrypted with encryption
X while they are encrypted with encryption Z) or the password file have
been created with the wrong tool.

Davide

--
Play Rogue, visit exotic locations, meet strange creatures and kill
them.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
troloo

External


Since: Sep 01, 2004
Posts: 4



(Msg. 9) Posted: Thu Sep 02, 2004 1:41 pm
Post subject: Re: htaccess problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > Naw, the _correct_ way is to use the htpasswd tool that is shipped with
 > Apache itself. If apache can't understand the password that is written

Wow, I didn't know that this tool is included in Apache. I've spend
(and waisted) a lot of time searching for some kind of generator. Now it
works very well without any problems. Thanks for help!!

--
Greetings - TroLoo<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
htaccess problem - If I access my web page with just the ip address such as, http://123.123.123.123 I only get prompted once for the user id and password. If I access the page by the domain name such as, www.server.host.com it will prompt me for the user id and password....

.htaccess problem - Hi all, First of all, sorry for the long story, but I hope it will make my problem clear and leaves as little questions unanswered as possible. I'm experiencing a problem with .htaccess that seems to be quite common. Unfortunately, after spending hours...

.htaccess problem - hello, I have disabled directory browsing for all folders on my server and written a .htaccess allowing it for one folder. I would like to know what to put in a .htaccess file so that full access to all directories is enabled for only two IP addresses. ...

newbie htaccess problem... - I want to protect my images. The images are on a server with only a ip address (66.66.66.66) and on port 8080 (66.66.66.66:8080). And the images should only be use on webpages of another website ex: webard.net ..htaccess RewriteEngine on RewriteBase /....

.htaccess authentication problem - Hello, I'm trying to configure Apache 2.0.40 (on RH Linux 9) to use .htaccess authentication. The directories I'm trying to protect are configured like this: <Directory /dundee/home/[a-z]/*/public_html> AllowOverride FileInfo AuthConfig Limit...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]