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

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -