Is it possible assuming I have a domain and uri: http://foo.bar/candy To have the browser location still show http://foo.bar/candy but actually fetch the content from: http://newdomain.com/candy I.E. simply replace the host. Assume I have: server { listen 443; server_name foo.bar; root /srv/www/domains/foo.bar; index index.html; location / {by justink101 - Nginx Mailing List - English
Thanks, did not see this directive, exactly what is needed.by justink101 - Nginx Mailing List - English
Can we get a flag in HttpLimitReqModule to return a http status code 429 Too Many Requests instead of 503 Service Temporarily Unavailable since this is a more accurate status code? I know that 429 is not officially defined, but it is a defacto-standard. Perhaps something like: limit_req_exceeded 429;by justink101 - Nginx Mailing List - English
Thanks that worked perfectly, though I must admit, a bit of a round-a-bout solution.by justink101 - Nginx Mailing List - English
I don't have the auth_request module? All I need to do, is set the WWW-Authenticate header.by justink101 - Nginx Mailing List - English
I currently have: server{ ... if ($remote_user = "") { return 401; } ... } But what I really want is: server{ ... if ($remote_user = "") { add_header WWW-Authenticate 'Basic realm="mydomainhere.com"'; return 401; } ... } But nginx won't allow me to use the add_header directive inside an iby justink101 - Nginx Mailing List - English
Gosh that is horrible that I have to copy and paste shared headers in the server block, to all location blocks. Is this a conscious decision? This makes maintainability very difficult as i have to do something like: # shared_headers.conf add_header Alternate-Protocol 443:npn-spdy/3; add_header Strict-Transport-Security max-age=31556926; add_header X-XSS-Protection "1; mode=block"by justink101 - Nginx Mailing List - English
I am seeing strange behavior using includes. For example, if I request a javascript file (ending in .js) the headers set globally in the server block are not set. I was under the impression that if you set headers in the server block, ALL location blocks below inherit those headers. See the following: server { ... add_header Strict-Transport-Security max-age=31556926; add_headby justink101 - Nginx Mailing List - English
I am using proxy_pass to a dynamic subdomain: proxy_pass https://$remote_user.mydomain.io Is it possible to have the proxy_pass check if the response of https://$remote_user.mydomain.io is 404, if so, simply do: return 404; I.E. don't proxy, immediately return.by justink101 - Nginx Mailing List - English
Anybody have any further insight on this? Consistently slow DNS lookups from nginx, even though dig shows fast query times.by justink101 - Nginx Mailing List - English