Nevermind! recursive_error_pages on; Doh! RTFM! Thanks.by Goldcap - Nginx Mailing List - English
Hey Everyone: I use Nginx with Perl and Memcache, but not sure how to redirect if BOTH Perl and Memcached give me a 502... Memcached passes a 502 to the PERL script, which if error "should" go to the 502 error page, but it doesn't, with or without the "error_page" directive in the @fallback. Sorry if I'm missing something, but is a double-error redirect possible? As anby Goldcap - Nginx Mailing List - English
Merci Guillaume, parfait! Works like a charm. Was worried for just a second ;) Trust the NGIN, always trust the NGIN. Andy Guillaume Filion wrote: > Hi Andy, > > It looks like a problem I have with my reverse proxy setup. > I was able to correct it by setting the Host HTTP header to the proxy > request with "proxy_set_header Host $http_host;" just before proxy_pass.by Goldcap - Nginx Mailing List - English
Hi Everyone: I have a two webservers running nginx behind a load balancer. These two webservers are proxying SSL content from an app server on the LAN address that is not on the load balancer. Configuration is below: ================================================== server { listen 443; server_name some.domain.com; ssl on; ssl_certificate /path/to/some_cert.pby Goldcap - Nginx Mailing List - English
I'm having a similar issue, on a very high-traffic site, and as best I can tell, FASTCGI doesn't know that PHP has timed out, so it just waits for a response indefinately. These requests then create a long queue, and your requests just get longer and longer. I've done two things: 1) Reduce the timeout in the FASTCGI_PARAMS fastcgi_send_timeout 10; fastcgi_read_timeout 10; This may killby Goldcap - Other discussion
To follow up, it's really simple. You don't need the Map module, just a text file with rewrite directives, and the include directive. Doh! Not sure why I went the confusing route... location / { include /path/to/rewrite_rules_x.txt; +++++++++++++++++++++++++++++++ cat /path/to/rewrite_rules_x.txt rewrite /aaa /someotherpage; rewrite /bbb http://forum.nginx.org; ..by Goldcap - Nginx Mailing List - English
I'm unclear how to mimic the Apache rewrite map using the NginxHttpMapModule. I've included a map in my nginx.conf file, as so: =================================== map $uri $new { default http://www.domain.com/home/; /aa http://aa.domain.com/; /bb http://bb.domain.com/; /john http://my.domain.com/users/john/; } =========================by Goldcap - Nginx Mailing List - English
Anyone ever configured NGINX with a file of rewrite rules? Wiki is down for the past few days, so I haven't been able to check out the documentation, but I'm sure its possible, right?by Goldcap - How to...
![]() |
![]() |
![]() |
![]() |
![]() |