php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80415 nginx 404 error page
Submitted: 2020-11-25 12:52 UTC Modified: 2020-12-15 22:06 UTC
From: contact at kelianbousquet dot com Assigned: sas (profile)
Status: Assigned Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-11-25 12:52 UTC] contact at kelianbousquet dot com
Description:
------------
When i try to access to wrong url i see a 404 not found nginx page, why not make a custom php.net error page ?

Test script:
---------------
go to a wrong url => https://www.php.net/manual/fr/fjj

Expected result:
----------------
custom error page ?

Actual result:
--------------
nginx 404 error page

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-25 13:51 UTC] salathe@php.net
-Summary: Error page in php.net +Summary: nginx 404 error page -Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: Website problem
 [2020-11-28 10:59 UTC] gunnard at gmail dot com
currently the dev env. returns a custom 404 page and not the blank, default nginx one.
error.php +636
636 // ============================================================================
637 // 404 page for manual pages (eg. not built language)
638 if (strpos($URI, "manual/") === 0) {
639     error_404_manual();
640 }

I would like to see how the /etc/nginx.conf is setup to handle 404s on the server as this could be the issue. Also, the website is behind myracloud CDN and I wounder if certain 404 pages have been cached and need to be cleared.
 [2020-12-15 18:16 UTC] afilina at gmail dot com
I'm also getting the blank 404 nginx page: https://pasteboard.co/JF4wuNO.png

I can help with this. I can replicate the conditions locally and send you a config patch, but I need a copy of the nginx site's config file.
 [2020-12-15 22:06 UTC] salathe@php.net
-Assigned To: +Assigned To: sas
 [2020-12-15 22:06 UTC] salathe@php.net
Assigning to Sascha. I don't know who else might have access to configure the origin server.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 16 06:01:23 2021 UTC