On httpd 2.4
alias /repo /repos <Location /repos> Require ip 192.168.0.7 </Location>
I can reach repos but not repo (403 forbidden). If I use
directory instead of
location nothing changes.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
According to apache alias documentation:
Description: Maps URLs to filesystem locations Syntax: Alias URL-path file-path|directory-path
You should define alias like:
alias /repo /absolute/path/to/repos
/absolute/path/to/repos is outside
DocumentRoot, you should specify additional
<Directory> sections which cover the destination of aliases.
Here is a useful link on how to remap url using: RewriteRule, Alias or Redirect