вопрос по логам

Igor Sysoev is at rambler-co.ru
Tue Jan 20 10:02:44 MSK 2009


On Tue, Jan 20, 2009 at 09:36:39AM +0300, Mike Baikov wrote:

> Здравствуйте!
> 
> Почему не пишутся все указанные логи?

http://www.lexa.ru/nginx-ru/msg21514.html

>     server {
>         listen                  80;
>         server_name             xxx.ru
>         charset                 utf-8;
>         access_log              /var/log/nginx/xxx.access.log;
> 
>         if ($country) {
>             rewrite  ^/(.*)$                    /noaccess.html  last;
>             return                              403;
>         }
> 
>         location / {
>             root                                /var/www/xxx.ru/htdocs;
>             index                               index.html;
>         }
> 
> 
>         location = /osmp/ {
>             if ($partners) {
>                 access_log /var/log/nginx/partners_denied.log;
>                 return 404;
>             }
> 
>             rewrite  ^/osmp/                    /osmp/index.php  last;
>         }
> 
> 
>         location = /chronopay/ {
>             if ($partners) {
>                 access_log /var/log/nginx/partners_denied.log;
>                 return 404;
>             }
> 
>             access_log /var/log/nginx/chronopay_payments.log;
>             rewrite  ^/chronopay/               /chronopay/index.php  last;
>         }
> 
>         location = /chronopay/accept/ {
>             rewrite  ^/chronopay/accept/        /chronopay/accept.php last;
>         }
> 
>         location = /chronopay/decline/ {
>             rewrite  ^/chronopay/decline/       /chronopay/decline.php 
>  last;
> 
>         }
> 
> 
> Пишется только основной, остальные создаются при старте и все. Пусто.
> Спасибо!

-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list