Forum

Question concerning FastCGI

Ulfrum
15 May 2015, 18:02
Hello everybody,

I was experimenting with Hiawatha and FastCGI. And there is something I don't really understand.

If I visit a file that is not available on my webserver there is the automatic message '404', usually.
But with FastCGI enabled there is not this message, but only 'File not found.' And I get an error message in my log file with 'Primary script unknown'.

Did I do something wrong?
Is there a solution that everytime there comes the '404'-message without an error log?

Thank you!

Hiawatha version: Current version
Operating System: Linux
Hugo Leisink
19 May 2015, 09:06
Because a FastCGI daemon can also be running at a remote server, Hiawatha does not check for the CGI script to exist. It let's the FastCGI daemon handle that. So, the 'File not found' is a message generated by the PHP FastCGI daemon. You could try with 'TriggerOnCGIstatus = yes'.
This topic has been closed.