[SATLUG] apache file in a different folder

Luis Garza luis at luisgarza.com
Wed Nov 28 02:23:21 CST 2007


Richard Suberg wrote:
> What I would like to do is a file available in a different folder then
> DocumentRoot. Different path altogether. For example:
> DocumentRoot set to /mnt/www/web
> want to make a file  /var/log/callerid.log available.
>
> Everything I find doesn't relate to what I want to do.  I may be phrasing
> the search wrong - not knowing the best way to phrase what I want.  I am
> using Apache 2.2.4 and only using simple pages so far - no elaborate files
> no php, asp, cgi, mostly static text pages and binary files.  Thanks.
>
> Richard
>
>   
I believe that you will need to use an alias and a location or directory
directive.

For example, webalizer uses:

Alias /usage /var/www/usage

<Location /usage>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    # Allow from .example.com
</Location>


Luis Garza



More information about the SATLUG mailing list