上記の設定があります。.php ファイルが見つからないという 1 つの問題を除いて、すべて正常に動作します。「ファイルが見つかりません」というメッセージが表示された空白のページが常に表示されます (btw と 404 ステータス コード)。vhost に ErrorDocument 404 行がありますが、FastCGI の場合は有効にならないようです (FastCGI にルーティングされていないファイルの場合は引き続き機能します)。この構成で 404 を正しく処理する方法はありますか? ここに私のvhostがあります:
<VirtualHost *:80>
ServerAdmin info@domain.com
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /var/www/xxx/yyy/
<Directory /var/www/xxx/yyy>
Options FollowSymLinks -MultiViews
AllowOverride FileInfo AuthConfig Limit Options
Order allow,deny
allow from all
</Directory>
FastCgiExternalServer /var/www/xxx/yyy/php.fastcgi -socket /tmp/php-fpm -pass-header Authorization
Action php-fpm-yyy /php.fastcgi virtual
<FilesMatch ".+(php|html)$">
SetHandler php-fpm-yyy
</FilesMatch>
ErrorDocument 404 /map.php
ErrorLog ${APACHE_LOG_DIR}/yyy/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/yyy/access.log combined
</VirtualHost>