Мод Apache Error Handler правила для nginx

Автор Yarik, 18 февраля 2018, 10:39:47

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Yarik

По умолчанию мод работает только с .htaccess который ес-но в nginx не работают.Прописываем или заменяем в конфиге nginx следующие.Так как конвертор .htaccess->nginx ничего путного не выдал как и гугл-поиск думаю это будет актуально.
    error_page  400 "/index.php?action=error;code=400";
    error_page  401 "/index.php?action=error;code=401";
    error_page  402 "/index.php?action=error;code=402";
    error_page  403 "/index.php?action=error;code=403";
    error_page  404 "/index.php?action=error;code=404";
    error_page  405 "/index.php?action=error;code=405";
    error_page  406 "/index.php?action=error;code=406";
    error_page  407 "/index.php?action=error;code=407";
    error_page  408 "/index.php?action=error;code=408";
    error_page  409 "/index.php?action=error;code=409";
    error_page  410 "/index.php?action=error;code=410";
    error_page  411 "/index.php?action=error;code=411";
    error_page  412 "/index.php?action=error;code=412";
    error_page  413 "/index.php?action=error;code=413";
    error_page  414 "/index.php?action=error;code=414";
    error_page  415 "/index.php?action=error;code=415";
    error_page  416 "/index.php?action=error;code=416";
    error_page  417 "/index.php?action=error;code=417";
    error_page  500 "/index.php?action=error;code=500";
    error_page  501 "/index.php?action=error;code=501";
    error_page  502 "/index.php?action=error;code=502";
    error_page  503 "/index.php?action=error;code=503";
    error_page  504 "/index.php?action=error;code=504";
    error_page  505 "/index.php?action=error;code=505";