Welcome! Log In Create A New Profile

Advanced

quick.cms htaccess migration problem

Posted by ciacho 
quick.cms htaccess migration problem
February 20, 2011 02:18PM
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).
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready