[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 - restrict download with password



At 1149630710 past the epoch, Csanyi Pal wrote:
> So would You please explain to me what is the virtual
> location?

'Virtual location' is a misleading term. What is meant is,
the URI with which you access the resource.

As an example, On a fresh apache install, if you visit '/',
the URI is /, the real location is /var/www,
and the actual file served is /var/www/index.html.

A <Location> block works in terms of URIs[1].
In the above example, you would specify <Location />.

If you want to do a local-directory based match, use
<Directory>[2]. In the above example, you would specify
<Directory /var/www>.


[1] http://httpd.apache.org/docs/2.0/mod/core.html#location
[2] http://httpd.apache.org/docs/2.0/mod/core.html#directory

-- 
Jon Dowland
http://alcopop.org/



Reply to: