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: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready