Hi. I've installed nginx 1.4.4 from the repository at http://nginx.org/packages/centos/ for Centos 6.4 The reload command in the init.d script that comes with that sends the HUP signal to Nginx which then attempts to reload the config. However if there is an error in the config file: i) The error is just sent to the error log file. ii) The init.d script says 'OK' when Nginx hasn't reloadedby Danack - Ideas and Feature Requests
> Something like this should work: > > location /files/ { > internal; > add_header Content-Encoding $upstream_http_content_encoding; > } Thanks yep that worked. > This might not work well with nginx gzip filter though. And yes, I had to turn gzip off for the internal location used for x-accel-redirect, otherwise it was setting the Contentby Danack - Nginx Mailing List - English
I have Nginx setup to allow requests to be served with the X-Accel-Redirect header. This works fine for images, but I'm trying to get it to work for Javascript files that are already gzip'ed on the disk. It appears Nginx is stripping off the 'Content-Encoding: gzip' header. This makes the browser not unzip the content when it receives it, which obviously makes it not work. Is it possible toby Danack - Nginx Mailing List - English