Re: giving users their own http logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 09, 2004 at 06:11:00PM -0300, Javier Gostling wrote:
> There is an alternative provided by apache itself:
> 
> Use the SetEnvIf directive to set a variable depending a a regular
> expression over the URI, and set specific CustomLog directives to send
> the entries matching each variable to a different log file. Example:
> 
> SetEnvIf Request_URI "^/\~user1/" user1
> SetEnvIf Request_URI "^/\~user2/" user2

Damn! I used single dot lines for continuation and SMTP treated it as end of message. Here is the rest of the previous message:

SetEnvIf Request_URI "^/\~user1/" user1
SetEnvIf Request_URI "^/\~user2/" user2
etc...

CustomLog /var/log/user1/access_log common env=user1
CustomLog /var/log/user2/access_log common env=user2

Cheers,
-- 
Javier Gostling D.
<jgd@xxxxxxxxxxxxxxxxx>


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux