在这里
我有这个domain.com想法/home/username/public_html/domain.com
我将这些行添加到.htaccess中
ErrorDocument 500 /oohps.php
ErrorDocument 404 /where.php
Run Code Online (Sandbox Code Playgroud)
所以我可以展示一些风格的模板
问题是,当尝试访问非现有页面时,我得到并且aditional内部服务器错误,因此这些文件没有打开,
我想检查日志,但我在该路径(/home/username/public_html/domain.com)中找到错误日志,
发现一个: /var/log/httpd
但我不认为它是正确的文件夹,因为这个页面没有涉及很多错误,我没有看到任何涉及,
是否有一个PHP函数会输出错误日志文件路径?