我正在尝试使用
PHP函数virtual()向具有“未找到”页面的用户正确显示错误文档(如果满足条件).这是我在剧本上写的:
// if condition is met virtual('/var/www/error/HTTP_NOT_FOUND.html.var');
PHP Warning: virtual(): Unable to include
‘/var/www/error/HTTP_NOT_FOUND.html.var’ – request execution Failed in
/var/www/html/test on line 100
我检查了以下内容:
>在PHP.ini中,include_path =“.:/ var / www / error”
>在httpd.conf中,
<IfModule mod_negotiation.c> <IfModule mod_include.c> <Directory "/var/www/error"> Options +Includes AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all </Directory> ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var </IfModule> </IfModule>
什么可能导致警告以及如何解决这个问题?