Welcome to WebmasterWorld Guest from 54.226.47.198

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

CustomLog directive

     
7:51 am on Nov 9, 2011 (gmt 0)

New User

10+ Year Member

joined:Apr 16, 2004
posts: 4
votes: 0


I have a virtual dedicated server with GoDaddy. One of my scripts serves a download from a directory that is above the public_html directory for security reasons. Is it possible to set up the apache/http directives such that a log is created of accesses to this directory? Or perhaps this is just a contradiction in terms?
8:58 am on Nov 9, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3206
votes: 13


... don't you want to log the access to the script? presumably there is no other way of accessing the download if it is above the root.
9:02 am on Nov 9, 2011 (gmt 0)

New User

10+ Year Member

joined:Apr 16, 2004
posts: 4
votes: 0


Thanks topr8. Indeed, I am tracking the attempt to download. I am hoping to add a check on whether the download was a success.
10:27 am on Nov 9, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3206
votes: 13


... ok, i figured you'd be doing the obvious already!

sorry i don't know what your next step should be.
1:20 pm on Nov 9, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


if it is above the root then do you use a script to serve it?

if so the script could create a log of it's own and write what you want.

If not a script then how do you serve it?