.htaccess - 500 server error when denying access to subdirectory -


i trying deny direct access subdirectory using .htaccess:

# deny direct access <directory "/cron">   deny </directory> 

the above code in .htaccess file of public_html directory. subdirectory trying block located @ public_html/cron.

when enter address within /cron folder directly in browser, 500 server error instead of 403. idea why?

you can't use <directory> in .htaccess files.

http://httpd.apache.org/docs/2.2/en/mod/core.html#directory

context: server config, virtual host

use in /cron/.htaccessfile:

deny 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -