Forum Moderators: phranque

Message Too Old, No Replies

CustomLog directive

         

VirtualOdin

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

10+ Year Member



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?

topr8

8:58 am on Nov 9, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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

VirtualOdin

9:02 am on Nov 9, 2011 (gmt 0)

10+ Year Member



Thanks topr8. Indeed, I am tracking the attempt to download. I am hoping to add a check on whether the download was a success.

topr8

10:27 am on Nov 9, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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

sorry i don't know what your next step should be.

jatar_k

1:20 pm on Nov 9, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



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?