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/12/27 16:08:07 UTC

[users@httpd] some questions on inheritance/section merging

Hi...

When I have e.g.
<Directory /path/toVhostRoot>
	Options none
	AllowOverride none
	Satisfy all
	Order allow,deny
	Deny from all
</Directory>

and I make a subdir with just:
<Directory /path/toVhostRoot/subdir>
	Allow from all
</Directory>



1) Then all of:
	Options none
	AllowOverride none
	Satisfy all
	Order allow,deny
are inherited by the subdir, right?



2) How's about <Files> sections (somehow inside/below such a <Directory>
section.
As far as applicable, when I have something like:
<Directory /path/toVhostRoot>
	<Files foo>
	</Files>
</Directory>
or in a deeper subdir:
<Directory /path/toVhostRoot/subdir>
	<Files foo>
	</Files>
</Directory>
those directives would be inherited, too, right?



3) How's about <Location> sections (somehow inside/below such a
<Directory> section.
<Directory /path/toVhostRoot>
	<Location foo>
	</Location>
</Directory>
or in a deeper subdir:
<Directory /path/toVhostRoot/subdir>
	<Location foo>
	</Location>
</Directory>

Would it be inherited?
Would the <Location> sections even match, if the don't point to a file,
matched by the surrounding <Directory>? And would it, if it does?


4) How's that for Location/Files not below/inside the above <Directory>?
e.g.
<Directory /path/toVhostRoot>
	Options none
	AllowOverride none
	Satisfy all
	Order allow,deny
	Deny from all
</Directory>
<Files foo>
</Files>
<Location foo>
</Location>

a) If Files matches a file, below /path/toVhostRoot ... it would also
inherit the options, right?

b) What about Location? Is the same true here?
Cause if Location matches just something virtual that doesn't exist in
the filesystem,... it would probably "inherit" nothing from the
Directory.



Thanks,
Chris.

Re: [users@httpd] some questions on inheritance/section merging

Posted by Eric Covener <co...@gmail.com>.
I'd suggest http://httpd.apache.org/docs/2.2/sections.html + "try it and see".

---------------------------------------------------------------------
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