﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1303	Nginx should respect error_page directives	wurde@…		"I define a custom error page for 503 errors when putting my site into maintenance mode. It annoys me that this directive is not respected. The code below does not return custom error page.

  location / {
    if (-f /home/ubuntu/accreu/tmp/maintenance-on) {
      return 503;
    }
  }

  error_page 400 401 404 422  /404.html;
  error_page 500 502 503 504  /500.html;
"	defect	closed	minor		other	1.12.x	invalid				"nginx version: nginx/1.12.0
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 
built with OpenSSL 1.0.2g  1 Mar 2016
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx.pid --lock-path=/var/lock/nginx.lock --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-http_ssl_module --with-pcre-jit --with-http_gzip_static_module --with-http_gunzip_module --with-http_realip_module --with-http_geoip_module --with-http_v2_module --add-module=/usr/share/passenger/ngx_http_passenger_module
"
