nginx-error-pages | Cute Error Pages for your nginx web server | HTTP library
kandi X-RAY | nginx-error-pages Summary
kandi X-RAY | nginx-error-pages Summary
Cute Error Pages for your nginx web server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nginx-error-pages
nginx-error-pages Key Features
nginx-error-pages Examples and Code Snippets
Community Discussions
Trending Discussions on nginx-error-pages
QUESTION
I'm new into nginx and in order to test it I'm migrating from Apache and all I got left is setting up the custom error pages.
These pages are php files (for multi language purposes), I have tried many of the methods from StackOverflow but I cannot figure out how to make it.
Some of them are:
- nginx-php-fpm-custom-error-pages
- nginx-fastcgi-for-php-error-page
- nginx-error-pages-one-location-rule-to-fit-them-all
So far I've created a file /etc/nginx/common/default-error-pages.conf
to include it on the vhosts. This file contains:
ANSWER
Answered 2019-Oct-23 at 13:18I got wrong the root
as Richard Smith told in the comment below the post.
After changing it to the suggested one all worked perflectly.
I also nested the location
blocks so the php files are correctly handled, as others are being processed with fastcgi_intercept_errors on;
to catch the http errors.
So the config stays as:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nginx-error-pages
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page