How to set 404 error on Bitrix (nginx + php-fpm)?

0 like 0 dislike
20 views
Did the server build without Apache, nginx + php-fpm. To iblock elements and sections of infoblocks 404 error works. Not working mechanism of handling 404 errors for non-dynamic pages of form https://domaim.ru/path/

How to set up?
by | 20 views

2 Answers

0 like 0 dislike
The 404 error gives himself Bitrix in your template. The contents of the error lies in the file 404.php in the root.
To catch the error, you need to put the block:
location / { try_files $uri $uri/ @bitrix; }
by
0 like 0 dislike
And that shows page view https://domaim.ru/path/ ?
to register it in the config from the nginx website:
error_page 400 = https://domaim.ru/stranicaoshibki;
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Jun 14, 2019 by PbI6A_KuT
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,699 users