[PATCH] files: Tell Apache to let clients follow symlinks

Pat Riehecky riehecky at fnal.gov
Wed May 13 17:11:19 UTC 2015


Could we use +SymLinksIfOwnerMatch instead of +FollowSymLinks ?

Pat

On 05/13/2015 12:00 PM, Mathieu Bridon wrote:
> From: Mathieu Bridon <bochecha at daitauha.fr>
>
> This is necessary for builds to succeed, as they will try to access URLs
> like this:
>
>    http://koji.fr/kojifiles/repos/$tag/$repoid/$arch/toplink/packages/...
>
> And on the filesystem, that "toplink" folder is in fact a symlink to the
> kojifiles root.
> ---
>   hub/httpd.conf | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hub/httpd.conf b/hub/httpd.conf
> index 5f480ea..33b882d 100644
> --- a/hub/httpd.conf
> +++ b/hub/httpd.conf
> @@ -29,7 +29,7 @@ Alias /kojihub /usr/share/koji-hub/kojixmlrpc.py
>   Alias /kojifiles "/mnt/koji/"
>   
>   <Directory "/mnt/koji">
> -    Options Indexes
> +    Options Indexes FollowSymLinks
>       AllowOverride None
>       Require all granted
>       #If you have httpd <= 2.2, you'll want the following two lines instead

-- 
Pat Riehecky
Scientific Linux developer

Fermi National Accelerator Laboratory
www.fnal.gov
www.scientificlinux.org



More information about the buildsys mailing list