homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Noob question: How to give access to filesystem outside documentroot?

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

Any suggestions for a real newbie like me? ;)

Thanks for your help guys!



Msg#: 4235177 posted 6:59 am on Nov 27, 2010 (gmt 0)

Not sure if this would work or not, but you could try in your terminal

ln -s /usr/env/dev/logs /usr/env/dev/www/logs


ln -n /usr/env/dev/logs /usr/env/dev/www/logs

in theory (if this advice is anything worthwhile) it would create a link to the /user/env/dev/logs folder and files within it as /www/logs

if it worked correctly the logs folder should contain the logs without directly sharing the logs folder.


Msg#: 4235177 posted 7:00 am on Nov 27, 2010 (gmt 0)

you may want to verify with someone that knows more than I to make sure that will work before you try.


WebmasterWorld Senior Member 5+ Year Member

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved