apache - Location and Directory cause 500 error -


i have .htacces file , trying open access file , folder within protected folder.

the file index.php following:

<files index.php>     order allow,deny     allow     satisfy </files> 

this works , give me access file. file requires assets assets/ directory. try open directory doing following:

<directory "/assets">     order allow,deny     allow     satisfy </directory> 

but giving me 500 error. not sure why.

you can't use <directory> container inside htaccess file (which <directory> container itself). if want allow access assets, create htaccess file inassets just:

order allow,deny allow 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -