Welcome! Log In Create A New Profile

Advanced

error_page

Posted by jemoje 
error_page
February 18, 2010 02:09PM
Имеются свои файлы ошибок.
Как сделать статус ошибки в переменную чтобы не прописывать каждую

error_page $status /error_$status.html;
location = /error_$status.html {
root /usr/local/www/errors/;
}
Re: error_page
February 18, 2010 02:36PM
А то вон как получается

error_page 100/error_100.html; location = /error_100.html { root /usr/local/www/errors/; }
error_page 101/error_101.html; location = /error_101.html { root /usr/local/www/errors/; }
error_page 200/error_200.html; location = /error_200.html { root /usr/local/www/errors/; }
error_page 201/error_201.html; location = /error_201.html { root /usr/local/www/errors/; }
error_page 202/error_202.html; location = /error_202.html { root /usr/local/www/errors/; }
error_page 203/error_203.html; location = /error_203.html { root /usr/local/www/errors/; }
error_page 204/error_204.html; location = /error_204.html { root /usr/local/www/errors/; }
error_page 205/error_205.html; location = /error_205.html { root /usr/local/www/errors/; }
error_page 206/error_206.html; location = /error_206.html { root /usr/local/www/errors/; }
error_page 300/error_300.html; location = /error_300.html { root /usr/local/www/errors/; }
error_page 301/error_301.html; location = /error_301.html { root /usr/local/www/errors/; }
error_page 302/error_302.html; location = /error_302.html { root /usr/local/www/errors/; }
error_page 303/error_303.html; location = /error_303.html { root /usr/local/www/errors/; }
error_page 304/error_304.html; location = /error_304.html { root /usr/local/www/errors/; }
error_page 305/error_305.html; location = /error_305.html { root /usr/local/www/errors/; }
error_page 400/error_400.html; location = /error_400.html { root /usr/local/www/errors/; }
error_page 401/error_401.html; location = /error_401.html { root /usr/local/www/errors/; }
error_page 402/error_402.html; location = /error_402.html { root /usr/local/www/errors/; }
error_page 403/error_403.html; location = /error_403.html { root /usr/local/www/errors/; }
error_page 404/error_404.html; location = /error_404.html { root /usr/local/www/errors/; }
error_page 405/error_405.html; location = /error_405.html { root /usr/local/www/errors/; }
error_page 406/error_406.html; location = /error_406.html { root /usr/local/www/errors/; }
error_page 407/error_407.html; location = /error_407.html { root /usr/local/www/errors/; }
error_page 408/error_408.html; location = /error_408.html { root /usr/local/www/errors/; }
error_page 409/error_409.html; location = /error_409.html { root /usr/local/www/errors/; }
error_page 410/error_410.html; location = /error_410.html { root /usr/local/www/errors/; }
error_page 411/error_411.html; location = /error_411.html { root /usr/local/www/errors/; }
error_page 412/error_412.html; location = /error_412.html { root /usr/local/www/errors/; }
error_page 413/error_413.html; location = /error_413.html { root /usr/local/www/errors/; }
error_page 414/error_414.html; location = /error_414.html { root /usr/local/www/errors/; }
error_page 415/error_415.html; location = /error_415.html { root /usr/local/www/errors/; }
error_page 500/error_500.html; location = /error_500.html { root /usr/local/www/errors/; }
error_page 501/error_501.html; location = /error_501.html { root /usr/local/www/errors/; }
error_page 502/error_502.html; location = /error_502.html { root /usr/local/www/errors/; }
error_page 503/error_503.html; location = /error_503.html { root /usr/local/www/errors/; }
error_page 504/error_504.html; location = /error_504.html { root /usr/local/www/errors/; }
error_page 505/error_505.html; location = /error_505.html { root /usr/local/www/errors/; }
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready