You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Christoph Anton Mitterer <ca...@scientia.net> on 2011/01/28 01:45:06 UTC

[users@httpd] how is SSLRequireSSL merged?

Hi...

(Yes I've read the documentation section about merging sections, but
IMHO it's not absolutely clear IMHO)

I have one vhost containing about:
...
<Location />
	SSLRequireSSL
</Location>
...
and possibly also a later location-section on /, containing other
directives, e.g.
<Location />
	#do e.g. some proxy stuff
</Location>

(and yes it's unfortunately required to have two separate sections)


Is the SSLRequireSSL still active, after the merging?

I now it says "later sections override earlier ones"... but what exactly
does "override" mean here,.. "completely" or just those directives which
are defined in the later section?


Or in more general words, having:
<Location />
	directiveA value1
	directiveB value1
</Location>
<Location />
	directiveB value2
	directiveC value2
</Location>

Will the merged result be like:
<Location />
	directiveA value1
	directiveB value2
	directiveC value2
</Location>
or just
<Location />
	directiveB value2
	directiveC value2
</Location>


I used to thought it's always (except for +/- directives like Options or
so) like the former of the two ways, but it seems to be not always like
that, at least with Order/Deny/Allow.


Thanks,
Chris.

Re: [users@httpd] how is SSLRequireSSL merged?

Posted by Rich Bowen <rb...@rcbowen.com>.
On Jan 27, 2011, at 7:45 PM, Christoph Anton Mitterer wrote:

> Hi...
> 
> (Yes I've read the documentation section about merging sections, but
> IMHO it's not absolutely clear IMHO)
> 
> I have one vhost containing about:
> ...
> <Location />
> 	SSLRequireSSL
> </Location>
> ...
> and possibly also a later location-section on /, containing other
> directives, e.g.
> <Location />
> 	#do e.g. some proxy stuff
> </Location>
> 
> (and yes it's unfortunately required to have two separate sections)
> 
> 
> Is the SSLRequireSSL still active, after the merging?

Yes

> 
> I now it says "later sections override earlier ones"... but what exactly
> does "override" mean here,.. "completely" or just those directives which
> are defined in the later section?

Directive A in a later scope overrides Directive A in the earlier one. Directive A in the later scope does not affect Directive B in the earlier.

--
Rich Bowen
rbowen@rcbowen.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org