@GeorgePatches said in How can I edit the default 404 page?:
If you could point me to where that is, I'd appreciate the help. 🙂
I'll show you how to find the way to find the file :
I presume you have some ideas about where the nginx config file is located, as it is the same as any other device out there that contains a web server :
/var/etc/nginx-webConfigurator.conf
That file is full with unique words = perfect grep-food, pick one of them. I chose 'fastcgi_intercept_errors'.
Now, the sledgehammer solution to locate the file you're looking for : check /etc/ and /usr/ :
[24.03-RELEASE][root@pfSense.bhf.tld]/etc: grep -R 'fastcgi_intercept_errors' *
inc/system.inc: $intercept_errors = "\t\t\tfastcgi_intercept_errors on;\n";
In /usr/ you'll find :
Binary file local/sbin/nginx matches
local/share/vim/vimfiles/syntax/nginx.vim:syn keyword ngxDirective contained fastcgi_intercept_errors
which also contain the word 'fastcgi_intercept_errors' for reasons I don't need to explain ^^
So /etc/inc/system.inc is your candidate.
You'll find the function system_generate_nginx_config() where the nginx config file is build.