GuiltySpark
New Pleskian
- Server operating system version
 - Ubuntu 24.04.01 LTS
 
- Plesk version and microupdate number
 - 18.0.66 #2
 
Hi, I am setting up a new server, its similar to my old server, except the OS (CentOS7 v Ubuntu24.04), they are both running Apache 2.4.58 and PHP 8.27.
I'm using nginx on both servers and I have custom error pages.
This works as expected on the new server in displaying my errorpage for a 404 for example.
To use this errorpages in code (PHP), I simply used:
	
	
	
		
And Apache would redirect to the custom error page, this is not working on the new server, and I don't know why, instead I just get a standard (Chrome I think) 404 error.
I know I can use the header + include to force it, but it was a little more elegant with the old server, any ideas?
Thanks
Mac
				
			I'm using nginx on both servers and I have custom error pages.
This works as expected on the new server in displaying my errorpage for a 404 for example.
To use this errorpages in code (PHP), I simply used:
		PHP:
	
	header('HTTP/1.0 404 Not Found');
exit();
	And Apache would redirect to the custom error page, this is not working on the new server, and I don't know why, instead I just get a standard (Chrome I think) 404 error.
I know I can use the header + include to force it, but it was a little more elegant with the old server, any ideas?
Thanks
Mac