Msg#: 4235177 posted 9:05 am on Nov 26, 2010 (gmt 0)
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
Msg#: 4235177 posted 11:45 pm on Nov 27, 2010 (gmt 0)
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...]
Msg#: 4235177 posted 5:45 pm on Nov 28, 2010 (gmt 0)
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'); ?>