On 03.10.17 15:10, rosjat wrote:
Hi there,
I was wondering if there is some guidence out there for this sort of
thing? I know it's possible to simply block directories or put basic
auth in front of it but what's about some more fine grained stuff for
a file in a directory? Like this
<IfModule !authz_core_module>
order deny,allow
<Files "template.htm">
deny from all
</Files>
</IfModule>
<IfModule authz_core_module>
<Files "template.htm">
Require all denied
</Files>
</IfModule>
Is there a way to rewrite this for the httpd.conf ?
try this:
location template.* {
block;
}
untested, but should work.
And 2nd question would be how to give the user a way to implement
something like it on there own? I was thinking of a simply standard
include in the server definition but this might mess things up
there is no such thing as .htaccess in httpd.
regards