0
votes
0answers
11 views

nginx and expire header not working

this is my nginx config location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires 1y; add_header Pragma public; add_header Cache-Control "public"; try_files $uri $uri/ /$1/$2 =404; ...
1
vote
1answer
356 views

Response headers in Memcached+Nginx

Is there any way to cache response headers along with the response body in Memcached for use with Nginx?
6
votes
1answer
834 views

Nginx add_header for a 50* page

I'm currently trying to get nginx to add a header to the response when it is sending some kind of 50* error. I already have an add_header directive on the http block, and that gets respected for all ...
1
vote
1answer
2k views

Adding and using header (HTTP) in nginx

I am using two system (both are nginx load balancer and one act as an backup). I want to add and use few http custom headers. Please give your suggestion e.g upstream upstream0{ ...
1
vote
1answer
208 views

Why does SERVER_PORT not always get passed to my appserver?

I have an nginx set up in a very boring fashion as a reverse proxy to an appserver. But sometimes my upstream gets the environment variable SERVER_PORT, sometimes it does not. Anyone suggest why it's ...
1
vote
1answer
3k views

how to get nginx to gzip all files and add an expires header

recently got into VPS systems and installing them, and all that blah blah etc etc. So, I have a couple working websites, and on one of them I'm trying to really optimize it for speed. Using Yahoo's ...