Welcome! Log In Create A New Profile


quick.cms htaccess migration problem

Posted by ciacho 
quick.cms htaccess migration problem
February 20, 2011 02:18PM

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

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: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready