httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Using Authenticaion information
Date Tue, 12 Jun 2007 13:09:50 GMT
On 6/12/07, Nasar Sharif <mail2nasar@gmail.com> wrote:
> Hi,
>
> After successfully authenticating a user using htpasswd/htaccess file
> mechanism, I'd like to get the username and the IP address and pass it
> to a perl script so that i can log the information. Please let me know
> how can i do this.

See the environment variables REMOTE_USER and REMOTE_ADDR. The CGI
spec has more details.

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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message