开发者

Apache: How to apply 'Order Deny,Allow Deny from all' for directory host/content/ with using only one .htaccess in host/.htaccess, without httpd.conf?

开发者 https://www.devze.com 2023-02-13 04:57 出处:网络
How to apply Order Deny,Allow Deny from all for directory localhost/content/ with only one .htaccess in localhost/.htaccess, without httpd.conf ?

How to apply

Order Deny,Allow
Deny from all

for directory localhost/content/ with only one .htaccess in localhost/.htaccess, without httpd.conf ? <Directory> is not allowed in .htac开发者_开发问答cess


Can't you put the files outside the documentroot of the website?

Only solution I found was just redirecting when somebody tries to reach that directory.

Redirect permanent /content/ http://localhost

/Emil

0

精彩评论

暂无评论...
验证码 换一张
取 消