I have an apache web-server running. I need to set up http access to the servers log-files in the easiest way possible. Dont worry about security, this is just a local test-server for testing purposes.
documentroot is set to /usr/env/dev/www/docs
And I need to give http access to all files under /usr/env/dev/logs
For http, I use a tiny Perl script to 'print' log tails (typically 500 lines; sometimes up to 5000 lines) thus making them instantly readable in a browser. If you run Perl, you'll find more details in one of my posts (# 4208975) here... [webmasterworld.com...]
I never thought of that, I suppose if your using php you could just do an include statement. Assuming it can grab a document from elswhere on the server. Could come down to a permissions issue.. <?php include('/usr/env/dev/logs/logname'); ?>