Would like to see proxy_ignore_headers have the option to set it to
“any” header, or config specific like:
Vary
WP-Super-Cache
X-Pingback
All the best,
Todd
Posted at Nginx Forum:
Would like to see proxy_ignore_headers have the option to set it to
“any” header, or config specific like:
Vary
WP-Super-Cache
X-Pingback
All the best,
Todd
Posted at Nginx Forum:
Hello!
On Sun, Dec 06, 2009 at 05:29:00PM -0500, nerdgrind wrote:
Would like to see proxy_ignore_headers have the option to set it to “any” header, or config specific like:
Vary
WP-Super-Cache
X-Pingback
Directive proxy_ignore_headers applies only to headers proxy
module handles specially. It instructs proxy module to ignore
such headers instead of processing them and acting appropriately
(e.g. stops it from doing internal redirect on X-Accel-Redirect
header). This obvoisly doesn’t apply to “any” headers.
So it’s not really clear from here what you want to do. Please
explain use case.
Maxim D.
I use Apache as the backend proxy server to process the php files for
Wordpress. If there are any headers identified in .htaccess files, such
as the one in the cache directory for WP Super Cache, those headers,
such as Cache-Control are sent back to the browser, along with any
headers set in the http nginx.conf.
When I read about proxy_ignore_headers I thought it meant Nginx would
ignore headers from the proxy server, for example headers coming from
Apache in this case. Do I have that backwards?
Posted at Nginx Forum:
Hello!
On Sun, Dec 06, 2009 at 07:45:16PM -0500, nerdgrind wrote:
I use Apache as the backend proxy server to process the php files for Wordpress. If there are any headers identified in .htaccess files, such as the one in the cache directory for WP Super Cache, those headers, such as Cache-Control are sent back to the browser, along with any headers set in the http nginx.conf.
And? You want to hide this headers from response returned to
client? If yes, please use proxy_hide_header directive, see here:
http://wiki.nginx.org/NginxHttpProxyModule#proxy_hide_header
When I read about proxy_ignore_headers I thought it meant Nginx would ignore headers from the proxy server, for example headers coming from Apache in this case. Do I have that backwards?
Yes, proxy_ignore_headers works with response headers returned by
backend server. As I already wrote, it is here to stop proxy
module from processing several specially handled response headers
(if needed for some reason).
Maxim D.
Thank you for setting me straight. I appreciate your time.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs