Forum

FCGI tries to parse nonexisting files

operative
25 April 2012, 22:09
Hi,

I'm having some funny problems with my hiawatha + php-fcgi setup.
Google (+ some users with wrong bookmarks) try to access a file that doesn't exist. domain/wbb/index.php instead of domain/index.php
now my error log is full of
"CGI-wrapper: CGI program does not exist"

is there any way i can deliver 404 messages for non existing php files?

Hiawatha version: 8.1
Operating System: Ubuntu10.04 LTS
Hugo Leisink
26 April 2012, 00:18
Use the following:
TriggerOnCGIstatus = true
ErrorHandler = 404:/error.html


Create a file called error.html in the root directory of your website and fill it with your own customized error message.
This topic has been closed.