Any way to access data from outside DocumentRoot?

Any way to access data from outside DocumentRoot?

am 12.09.2009 21:06:38 von Raimund Eimann

Hi,

my DocumentRoot is /srv/www/blah.com/htdocs. I prefer to have all my
photos on my dedicated photo drive which is somehwere under
/usr/local/video/pics/.

After finding some contradictory getting access on my website to these
photos via symlinks, I've tried very hard to the +FollowSymLinks to work,
but then I found infos that this works only inside the
where its defined in (which for me is the same as the DocumentRoot).

Is anyone here aware of a solution? Can I somehow get access to data
stored outside my DocumentRoot? If so what keywords should I search for?
Or: What part of Apache's manual addresses this question?

Any help appreciated,
Raimund

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Any way to access data from outside DocumentRoot?

am 12.09.2009 21:49:17 von Sean Conner

It was thus said that the Great Raimund Eimann once stated:
> Hi,
>
> my DocumentRoot is /srv/www/blah.com/htdocs. I prefer to have all my
> photos on my dedicated photo drive which is somehwere under
> /usr/local/video/pics/.

You can add the following to your configuration file:

Alias /pics/ "/usr/local/video/pics/"

# directives to protect, set up this directory


The images will be references from the website as:

http://www.example.net/pics/...

But they will be stored on the disk under the given location in the Alias.

-spc


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org