Добрый день!

Есть следующий конфиг

    server {
        listen 80;
        server_name     example01.ru;

        add_after_body /inject.html;

        location /inject.html {
                root    /etc/nginx/conf.d/example01.ru;
        }

        location ~* /cron/ {
                allow "ip addres";
                allow "ip addres";
                allow "ip addres";
                deny all;
                proxy_read_timeout 999999999;
                proxy_pass      http://upstream_list;
        }

        location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
        }

        location ~*
^.+.(css|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|ogv|otf|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|t?gz|tif|tiff|ttf|wav|webm|wma|woff|wri|xla|xls|xlsx|xlt|xlw|zip)$
{
                access_log off;
                log_not_found off;
                proxy_pass           http://upstream_list;
                include include/"конфиг с кэшем";
        }

        location / {
                proxy_pass      http://upstream_list;
        }

}

Суть в том что при любом запросе у сервера example01.ru, в ответ должен
приходить ответ + Содержимое inject.html
Содержимое inject.html добавляется к телу ответа не всегда. В чем может
быть проблема?

С уважением, Михаил
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Reply via email to