Конфиг nginx

Есть такой конфиг nginx

#AUTOMATICALLY GENERATED - DO NO EDIT!



server {
    listen *:80 default_server;
    listen *:443 ssl default_server;

    ssl_certificate /srv/storage-ssl/site-com/site-com-bundled.crt;
    ssl_certificate_key /srv/storage-ssl/site-com/site-com.key;
    server_name site.com www.site.com;

    access_log /var/log/nginx/modx-revolution.access.log;
    error_log /var/log/nginx/modx-revolution.error.log;

    root /srv/website-modx-revolution;
    index index.html index.htm index.php;

    client_max_body_size 100m;

    location ~* ^.+\.(aac|au|avi|bak|bmp|css|doc|docx|eot|gif|gz|htaccess|htc|htm|html|ico|jpeg|jpg|js|mp3|mp4|mpeg|mpg|odb|odf|odg|odp|ods|odt|otf|pdf|png|ppt|pptx|psd|rar|scss|svg|tar|tgz|ttf|txt|wav|wmv|woff|xls|xlsx|xml|z|zip)$ {
        access_log off;
        expires 10d;
        break;
    }

    location = /favicon.ico { allow all; log_not_found off; access_log off; }
    location = /robots.txt  { allow all; log_not_found off; access_log off; }
    location = /humans.txt  { allow all; log_not_found off; access_log off; }

    if ($scheme != 'https') {
        rewrite ^/(.*)$ https://$host/$1 permanent;
    }

    location ~* ^/core/ { deny all; }
    location ~ /ht\.    { deny all; }
    location ~ /\.      { deny all; }

    error_page 403 = @modx;
    error_page 404 = @modx;

    location / { try_files $uri $uri/ @modx; }

    location @modx {
        rewrite ^/(.*)$ /index.php?q=$1&$args last;
    }

    location ~ [^/]\.php(/|$) {
        fastcgi_index index.php;
        include fcgi.conf;
        fastcgi_pass unix:/var/run/ajenti-v-php-fcgi-modx-revolution-php-fcgi-0.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

С таким конфигом и включеными френдли урл в error_log постоянно летят ошибки вида:

2014/12/02 19:15:58 [error] 20369#0: *1 open() "/srv/website-modx-revolution/unavailable.html" failed (2: No such file or directory), client: 2.61.123.228, server: site.com, request: "GET /unavailable.html HTTP/1.1", host: "site.com", referrer: "https://site.com/manager/?

Как подавить эту ошибку? Она появляется от перехода на любую сгенерированную modx страницу.
Aртур Чикин
02 декабря 2014, 19:34
modx.pro
2
5 443
0

Комментарии: 2

Aртур Чикин
02 декабря 2014, 23:21
0
Можно закрыть, проблема решилась удалением из блока
location ~* ^.+\.(aac|au|avi|bak|bmp|css|doc|docx|eot|gif|gz|htaccess|htc|htm|html|ico|jpeg|jpg|js|mp3|mp4|mpeg|mpg|odb|odf|odg|odp|ods|odt|otf|pdf|png|ppt|pptx|psd|rar|scss|svg|tar|tgz|ttf|txt|wav|wmv|woff|xls|xlsx|xml|z|zip)$ {
        access_log off;
        expires 10d;
        break;
    }
расширения html
    Василий Наумкин
    03 декабря 2014, 07:49
    0
    Можно закрыть
    Ты можешь самостоятельно снять тикет с публикации, если считаешь, что он тут не нужен.
    Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
    2