Welcome! Log In Create A New Profile

Advanced

Re: nginx phtml .htaccess error

Валентин Бартенев
February 10, 2012 02:22AM
Ваш phtml очевидно попадает вот в этот location:

> location ~*
> ^.+.(jpg|jpeg|css|html|gif|png|ico|css|zip|tgz|gz|rar|js|txt|pdf)$
>
> {
> root /var/www/sait.ru/public;
> access_log off;
> expires 3d;
> valid_referers none blocked server_names
> *.sait.ru.ru
> ~\.google\.
> images.yandex.ru
> sait.ru
> *.c.sait.ru;
> if ($invalid_referer) {
> return 403;
> }
> }

Учитесь внимательно и правильно писать регулярные выражения.

location ~* \.(?:jpeg?|css|html|gif|png|ico|zip|t?gz|rar|js|txt|pdf)$ {
...
}

--
Валентин Бартенев
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx phtml .htaccess error

chillivilli February 09, 2012 01:37PM

Re: nginx phtml .htaccess error

barut February 09, 2012 02:26PM

Re: nginx phtml .htaccess error

chillivilli February 10, 2012 01:37AM

Re: nginx phtml .htaccess error

Валентин Бартенев February 10, 2012 02:22AM

Re: nginx phtml .htaccess error

chillivilli February 10, 2012 03:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
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