Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Некорректная работа add_after_body (8 replies)

$
0
0
Добрый день!

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

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

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>