You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hytham Shehab <hy...@menanet.net> on 2002/03/19 07:09:59 UTC
.htaccess & .htpasswd problems with win32
hi everyone,
i use apache 1.3.20 on win32xp, it works just fine till i want to try the .htaccess:
AuthType Basic
AuthName "By Invitation Only"
AuthUserFile htpasswd.txt
Require viper
and the htpasswd.txt is a plain txt of viper:viper
now, when i access the page, it gives me the realm of "By Invitation Only", then i type viper in the username and viper in the password field, after three tirals, it gives me the message of bad passwords and other things that is impossible in my case.
any help? wll be appreciated.
--
Hytham Shehab
Re: conditional logging
Posted by Luis Moreira <la...@bes.pt>.
Conditional Logging
There are times when it is convenient to exclude certain entries from the access logs based on characteristics of the client request. This is easily accomplished with the help of environment variables. First, an environment variable must be set to indicate that the request meets certain conditions. This is usually accomplished with SetEnvIf. Then the env= clause of the CustomLog directive is used to include or exclude requests where the environment variable is set. Some examples:
# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests for the robots.txt file
SetEnvIf Request_URI "^/robots\.txt$" dontlog
# Log what remains
CustomLog logs/access_log common env=!dontlog
This text was taken from http://httpd.apache.org/docs-2.0/logs.html#conditional
I hope it helps
Luis
Teach children, so you don't have to punish adults (Pitagoras)
----- Original Message -----
From: "Eduardo Gomez" <in...@yahoo.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 19, 2002 12:59 PM
Subject: conditional logging
> Hello:
>
> How do I prevent apache from logging both access to files with any
> extension I want (*.gif, *.jpg, *.mp3, etc.) and also that stupid
> nimda / code red stuff? I had it working but accidentally I wrote over
> that particular httpd.conf file. Please, don't send me to:
>
> > http://httpd.apache.org/docs/mod/mod_log_config.html#customlog
> > http://httpd.apache.org/docs/logs.html#conditional
> > http://httpd.apache.org/docs/env.html#examples
>
> because last time I tried to figure that out, and I just got a big headache.
>
> I'm using Apache on Windows.
>
> I tried 3 or 4 GUIs for Apache so far. None gives the option of filtering
> logged stuff by
> their extension (.gif, .wav, etc). If they can build a GUI, that'd be
> a pice of cake for them. Anyway....thanks in advance.
>
> _________
> Edward
>
>
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: conditional logging
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 19 Mar 2002, Eduardo Gomez wrote:
> Hello:
>
> How do I prevent apache from logging both access to files with any
> extension I want (*.gif, *.jpg, *.mp3, etc.) and also that stupid
> nimda / code red stuff? I had it working but accidentally I wrote over
> that particular httpd.conf file. Please, don't send me to:
>
> > http://httpd.apache.org/docs/mod/mod_log_config.html#customlog
> > http://httpd.apache.org/docs/logs.html#conditional
> > http://httpd.apache.org/docs/env.html#examples
>
> because last time I tried to figure that out, and I just got a big headache.
>
Well, two of those three links contain examples that do almost exactly
what you want. If you can't figure them out, then why don't you start by
showing us what your best effort is, and what happens when you try to
implement it. Just telling us you don't understand the docs doesn't help
anyone.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
conditional logging
Posted by Eduardo Gomez <in...@yahoo.com>.
Hello:
How do I prevent apache from logging both access to files with any
extension I want (*.gif, *.jpg, *.mp3, etc.) and also that stupid
nimda / code red stuff? I had it working but accidentally I wrote over
that particular httpd.conf file. Please, don't send me to:
> http://httpd.apache.org/docs/mod/mod_log_config.html#customlog
> http://httpd.apache.org/docs/logs.html#conditional
> http://httpd.apache.org/docs/env.html#examples
because last time I tried to figure that out, and I just got a big headache.
I'm using Apache on Windows.
I tried 3 or 4 GUIs for Apache so far. None gives the option of filtering
logged stuff by
their extension (.gif, .wav, etc). If they can build a GUI, that'd be
a pice of cake for them. Anyway....thanks in advance.
_________
Edward
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: .htaccess & .htpasswd problems with win32
Posted by Luis Moreira <la...@bes.pt>.
If you want to validate user viper you have to state
Require user viper
Instead of only
Require viper
Luis
----- Original Message -----
From: "Hytham Shehab" <hy...@menanet.net>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 19, 2002 10:37 AM
Subject: Re: .htaccess & .htpasswd problems with win32
> here is a part of the error_log:
> [Tue Mar 19 08:05:26 2002] [error] [client 127.0.0.1] (2)No such file or
> directory: Could not open password file: c:/program files/apache
> group/apache/htpasswd.txt
> [Tue Mar 19 08:05:26 2002] [error] [client 127.0.0.1] user viper not found:
> /
> wll, frankly speaking, i wasn't intend to check the logs tell u told me.
>
> wll, thx then Morozov, may be i can try to handle it myself...
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: .htaccess & .htpasswd problems with win32
Posted by Hytham Shehab <hy...@menanet.net>.
here is a part of the error_log:
[Tue Mar 19 08:05:26 2002] [error] [client 127.0.0.1] (2)No such file or
directory: Could not open password file: c:/program files/apache
group/apache/htpasswd.txt
[Tue Mar 19 08:05:26 2002] [error] [client 127.0.0.1] user viper not found:
/
wll, frankly speaking, i wasn't intend to check the logs tell u told me.
wll, thx then Morozov, may be i can try to handle it myself...
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: .htaccess & .htpasswd problems with win32
Posted by Artiom Morozov <ar...@phreaker.net>.
post a relevant part of error_log
îÁ 2002.03.19 11:15 Hytham Shehab ÎÁÐÉÓÁÌ:
> i used it, but nothing changed...
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: .htaccess & .htpasswd problems with win32
Posted by Hytham Shehab <hy...@menanet.net>.
i used it, but nothing changed...
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: .htaccess & .htpasswd problems with win32
Posted by Artiom Morozov <ar...@phreaker.net>.
you should create htpasswd.txt using htpasswd utility shipped with
apache.
îÁ 2002.03.19 08:09 Hytham Shehab ÎÁÐÉÓÁÌ:
> hi everyone,
> i use apache 1.3.20 on win32xp, it works just fine till i want to
> try the .htaccess:
>
> AuthType Basic
> AuthName "By Invitation Only"
> AuthUserFile htpasswd.txt
> Require viper
>
> and the htpasswd.txt is a plain txt of viper:viper
> now, when i access the page, it gives me the realm of "By Invitation
> Only", then i type viper in the username and viper in the password
> field, after three tirals, it gives me the message of bad passwords
> and other things that is impossible in my case.
> any help? wll be appreciated.
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org