Hello,
I have a problem with htaccess rules.
In folder: /templates/ I must put this rules:
Options +Indexes
IndexIgnore *.tpl
<files *.tpl>
order allow,deny
deny from all
</files>
How to replace this rules to nginx friendly?
I tried this:
location /templates/\.tpl {
alias /var/www/xxx.com/http/templates/\.tpl;
deny all;
}
but this not works. I can access to *.tpl files and download it (in tpl file is php code).