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 11:45:18AM -0800, Chris W. Parker wrote:
> Thanks for response Ed but I'm not using virtual hosts (right now at
> least). How should I change your example to work with what I'm doing
> now?
> 
> http://domain.com/~username/
> 
> I want all activity within ~username/ to be logged. Does this make a big
> difference?

As long as you've got a log defined, the information will be there.
However, you'll have all the info in the same log.  You can certainly
post-process the log file.  For example, here's an entry from mine at
work:
150.228.5.121 - - [09/Jan/2004:13:35:33 -0600] "GET /~webmonitor/vpn-test.cgi HTTP/1.1" 200 5110

Now you'd have to write a script that looks for the ~, grabs the
username following that, and split the logs out.  That doesn't sound all
that hard, but I'm not going to offer to write it :-)

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program


-- 
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