Johan Bergström
July 28, 2010 08:14AM
Hey,
thought I'd chip in since I also use Varnish over nginx for caching (at least some parts)

On 28 jul 2010, at 14.04, Igor Sysoev wrote:

> On Wed, Jul 28, 2010 at 06:13:32AM -0400, revirii wrote:
>
>> Hello,
>>
>> we have a little problem with, as the topic says, "Nginx+varnish &
>> delivered error_page". We have nginx in front as proxy, behind there's a
>> varnish cashing stuff from a tomcat backend.
>>
>> Sometimes the tomcat crashes and delivers 503 to varnish; varnish sends
>> 503 to nginx, nginx sends it to the client (browser, fiddler, ...). I've
>> created some 50x error page which is delivered via nginx:
>>
>> [code]
>> error_page 500 501 502 503 504 505 /500.htm;
>>
>> # location for error pages
>> location = /500.htm {
>> root /var/www/errorpages;
>> internal;
>> }
>> [/code]
>>
>> It worked as long as varnish wasn't there, but now with varnish i can't
>> see my own error page anymore. Instead the default varnish 503 page (i
>> think it's some html code; but with correct 503 status code) is
>> delivered. Does anyone know why this happens and has an idea how to
>> prevent the varnish page to be delivered in favor of the nginx page?
>
> BTW, why do you prefer to use varnish instead of nginx built-in cache ?

The main reason I use varnish is wildcard purging.


>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx+varnish & delivered error_page

revirii July 28, 2010 06:13AM

Re: Nginx+varnish & delivered error_page

Oleksandr V. Typlyns'kyi July 28, 2010 07:20AM

Re: Nginx+varnish & delivered error_page

revirii July 28, 2010 07:49AM

Re: Nginx+varnish & delivered error_page

Igor Sysoev July 28, 2010 08:12AM

Re: Nginx+varnish & delivered error_page

Johan Bergström July 28, 2010 08:14AM

Re: Nginx+varnish & delivered error_page

revirii July 28, 2010 08:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 116
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready