Re: giving users their own http logs

From: Ed Wilts (ewilts_at_ewilts.org)
Date: 01/09/04

  • Next message: Stuart Sears: "Re: DNS Servers"
    To: redhat-list@redhat.com
    Date: Fri, 9 Jan 2004 14:01:05 -0600
    
    

    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@ewilts.org
    Member #1, Red Hat Community Ambassador Program
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Stuart Sears: "Re: DNS Servers"