Re: [users@httpd] allow deny file and multiple .conf question

2017-06-11 Thread Yehuda Katz
Allow/Deny directives apply to whatever container they are in. A single
file can onl.y ever match a single  block and the individual 
blocks do not have any connection to each other.

In general, .conf files are loaded alphabetically, but in your example, it
shouldn't matter.

- Y

On Fri, Jun 9, 2017 at 5:49 PM, Rose, John B  wrote:

> When controlling access to specific files via Allow/Deny, and not using
>  or , and putting in different .conf files, does the
> order of the conf files matter?
>
> In other words …
>
> aaa-block.conf has …
> 
>   Order Deny,Allow
>   Deny from All
> 
> …
>
> zzz-block.conf has …
> 
>   Order Deny, Allow
>   Deny from all
>   Allow from your domain.com
> 
>
>
> Would the .conf files similar to one above controlling access previous be
> negated by the last zzz-block.conf above? In other words “Allow from
> yourdomain.com" would apply to all the previous  statements? Are
> the .conf files in the same directory loaded alphabetically by Apache?
>
> Thanks
>
>


[users@httpd] allow deny file and multiple .conf question

2017-06-09 Thread Rose, John B
When controlling access to specific files via Allow/Deny, and not using 
 or , and putting in different .conf files, does the order 
of the conf files matter?

In other words …

aaa-block.conf has …

  Order Deny,Allow
  Deny from All

…

zzz-block.conf has …

  Order Deny, Allow
  Deny from all
  Allow from your domain.com



Would the .conf files similar to one above controlling access previous be 
negated by the last zzz-block.conf above? In other words “Allow from 
yourdomain.com" would apply to all the previous  statements? Are the 
.conf files in the same directory loaded alphabetically by Apache?

Thanks