Source

woocode / sa-auto / conf / nginx / mpf_ngx.conf


 server {
        listen 8088;
        #server_name freecdn.com;
        access_log  logs/mpf.freecdn.com.access.log;

        mpf_buf_factor 3;       
        mpf_mode merger;
        mpf_exp '<body.*>'  '$0<div>my header</div>';
        mpf_exp '</body>'  '<div>my footer</div>$0';

        location / {
            proxy_set_header Accept-Encoding 'none';
            proxy_set_header Host $http_host;
            proxy_pass http://local_squid;
          }

    }