最近在我的服务器上发生了一些变化,这导致internal error 500
每次 PHP 中出现语法或逻辑错误时都会抛出一个。这些错误正在处理中exception class
,我不希望他们抛出500
错误。
忘了提:当页面不存在=> 404错误工作得很好
我目前有严格的错误报告。我想这可能是我的apache config file
<Directory /var/www/public/>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{QUERY_STRING} (.*)(http|https|ftp):\/\/(.*)
#RewriteRule ^(.+)$ - [env=rfi:true]
#RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain\.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
</IfModule>
#CustomLog /path/to/logs/rfi.log combined env=rfi
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ErrorDocument 404 http://www.domain.com/404.php
#ErrorDocument 403 http://www.domain.com/403.php
ErrorDocument 500 http://www.domain.com/500.php
</Directory>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
有没有人看到任何可能导致 500 错误的东西?