Do anyone ever got that error. Same config files works in my another vps, but not in heroku.
Is there something which I don't aware of.
Nginx logs are showing connection refused.
proxy_cache_path /home levels=1:2 keys_zone=default_cache:20m max_size=2g inactive=10000m use_temp_path=off;
proxy_cache_key "$request_uri";
proxy_cache_valid 200 302 301 2d;
server {
listen $PORT;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_cache default_cache;
proxy_buffering on;
#proxy_cache_lock on;
proxy_ignore_headers Expires;
proxy_ignore_headers X-Accel-Expires;
proxy_ignore_headers Cache-Control;
proxy_ignore_headers Set-Cookie;
proxy_hide_header X-Accel-Expires;
proxy_hide_header Expires;
proxy_hide_header Cache-Control;
proxy_hide_header Pragma;
add_header Kcube-Cache $upstream_cache_status;
#add_header X-Proxy-Cache $upstream_cache_status;
proxy_pass http://127.0.0.1:8086;
}
}
``|