Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

.htaccess does not work

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


testwreq at gmail

Sep 10, 2009, 8:56 AM

Post #1 of 4 (3304 views)
Permalink
.htaccess does not work

Hello, My goal is to password protect a few pages in one of the userdir
(/home/users/vinda). And, I cannot get this to work. Any suggestions will be
welcomed! Below is the configuration in my httpd.conf file:
<Directory /home/*/*/public_html>
Options -Indexes FollowSymLinks IncludesNoExec
Options +ExecCGI
DirectoryIndex index.html index.php index.htm
AllowOverride AuthConfig
Allow from all
Order allow,deny
AddType text/html .html
AddOutputFilter INCLUDES .html
</Directory>
I placed .htaccess in (/home/users/vinda/public_html/labs) because this is
the directory I want to protect.
Below are the contents of .htaccess and it has the .passwd file generated by
htpasswd apache command.

AuthUserFile /www/home/users/vinda/labs/.htpasswd
AuthName "Members Only"
AuthType Basic
require user lab
When I call the page with http://hostname/~vinda/labs, I get the box to
enter the username and password but then I can never pass this. The error in
the eerror log is:
[debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] -
missing configuration parameters
[Thu Sep 10 10:35:32 2009] [error] [client 10.105.9.103] access to
/~vinda/labs failed, reason: verification of user id 'lab' not configured
Please advise. Am I missing any configuration?

Thanks much:)


j.zuckerman at gmail

Sep 10, 2009, 10:02 AM

Post #2 of 4 (3248 views)
Permalink
Re: .htaccess does not work [In reply to]

On Thu, Sep 10, 2009 at 8:56 AM, testwreq wreq <testwreq [at] gmail> wrote:
> Hello, My goal is to password protect a few pages in one of the userdir
> (/home/users/vinda). And, I cannot get this to work. Any suggestions will be
> welcomed! Below is the configuration in my httpd.conf file:
> <Directory /home/*/*/public_html>
> Options -Indexes FollowSymLinks IncludesNoExec
> Options +ExecCGI
> DirectoryIndex index.html index.php index.htm
> AllowOverride AuthConfig
> Allow from all
> Order allow,deny
> AddType text/html .html
> AddOutputFilter INCLUDES .html
> </Directory>
> I placed .htaccess in (/home/users/vinda/public_html/labs) because this is
> the directory I want to protect.
> Below are the contents of .htaccess and it has the .passwd file generated by
> htpasswd apache command.
> AuthUserFile /www/home/users/vinda/labs/.htpasswd
> AuthName "Members Only"
> AuthType Basic
> require user lab
> When I call the page with http://hostname/~vinda/labs, I get the box to
> enter the username and password but then I can never pass this. The error in
> the eerror log is:
> [debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] -
> missing configuration parameters
> [Thu Sep 10 10:35:32 2009] [error] [client 10.105.9.103] access to
> /~vinda/labs failed, reason: verification of user id 'lab' not configured
> Please advise. Am I missing any configuration?
>
> Thanks much:)
>

A few thoughts: might need to put the .htaccess file that password
protects all the contents of a directory _outside_ of that directory,
since that file is required to determine where the authorized users
data is stored, and you currently can't access it until you _are_ one
of those authorized users...

Also, really not a big deal but.. your subject implied that .htaccess
is broken. Chances are quite good that it's simply your understanding
of .htaccess which is flawed; everyone on this list is here because
they're happy to try to help but it might be nice to approach the
problem with the attitude "I would really appreciate some help
figuring your awesome free software out" rather than "Fix your shit".

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


aw at ice-sa

Sep 10, 2009, 10:12 AM

Post #3 of 4 (3266 views)
Permalink
Re: .htaccess does not work [In reply to]

testwreq wreq wrote:
The error in
> the eerror log is:
> [debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] -
> missing configuration parameters
And where does that come from ?
Hint : mod_auth_pgsql.c ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


testwreq at gmail

Sep 10, 2009, 12:04 PM

Post #4 of 4 (3241 views)
Permalink
Re: .htaccess does not work [In reply to]

I figured out the small typo in the path. Thanks for reading my request and
suggestions.

On Thu, Sep 10, 2009 at 1:02 PM, Jonathan Zuckerman
<j.zuckerman [at] gmail>wrote:

> On Thu, Sep 10, 2009 at 8:56 AM, testwreq wreq <testwreq [at] gmail>
> wrote:
> > Hello, My goal is to password protect a few pages in one of the userdir
> > (/home/users/vinda). And, I cannot get this to work. Any suggestions will
> be
> > welcomed! Below is the configuration in my httpd.conf file:
> > <Directory /home/*/*/public_html>
> > Options -Indexes FollowSymLinks IncludesNoExec
> > Options +ExecCGI
> > DirectoryIndex index.html index.php index.htm
> > AllowOverride AuthConfig
> > Allow from all
> > Order allow,deny
> > AddType text/html .html
> > AddOutputFilter INCLUDES .html
> > </Directory>
> > I placed .htaccess in (/home/users/vinda/public_html/labs) because this
> is
> > the directory I want to protect.
> > Below are the contents of .htaccess and it has the .passwd file generated
> by
> > htpasswd apache command.
> > AuthUserFile /www/home/users/vinda/labs/.htpasswd
> > AuthName "Members Only"
> > AuthType Basic
> > require user lab
> > When I call the page with http://hostname/~vinda/labs, I get the box to
> > enter the username and password but then I can never pass this. The error
> in
> > the eerror log is:
> > [debug] mod_auth_pgsql.c(774): [client 10.105.9.103] [mod_auth_pgsql.c] -
> > missing configuration parameters
> > [Thu Sep 10 10:35:32 2009] [error] [client 10.105.9.103] access to
> > /~vinda/labs failed, reason: verification of user id 'lab' not configured
> > Please advise. Am I missing any configuration?
> >
> > Thanks much:)
> >
>
> A few thoughts: might need to put the .htaccess file that password
> protects all the contents of a directory _outside_ of that directory,
> since that file is required to determine where the authorized users
> data is stored, and you currently can't access it until you _are_ one
> of those authorized users...
>
> Also, really not a big deal but.. your subject implied that .htaccess
> is broken. Chances are quite good that it's simply your understanding
> of .htaccess which is flawed; everyone on this list is here because
> they're happy to try to help but it might be nice to approach the
> problem with the attitude "I would really appreciate some help
> figuring your awesome free software out" rather than "Fix your shit".
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.