3 Oct 2005 23:40
PHP: requests for non-existent files
Martin Johnson <martin <at> martinshouse.com>
2005-10-03 21:40:31 GMT
2005-10-03 21:40:31 GMT
Hi,
I use Mathopd with PHP. There's a minor problem: requests for
non-existent files return "200 OK" and execute index.php (as if
index.php had been requested).
I'd prefer "404 Not Found". Can I fix this in mathopd.conf?
...
Server {
Port 8888
Virtual {
Host www.example.com
Control {
Alias /
Location /webpub/example.com
PutEnv { PHPRC=/etc/php/example.com }
External {
/usr/bin/php { php }
}
IndexNames { index.html index.php }
}
Thanks for any thoughts,
- Martin.
Quentin
Piotr Meyer writes:
>>
>> Hello,
>> I currently use a daily rotation for the mathopd log files:
>>
>> Log /home/log/mathopd/log.%Y%m%d
>>
>> However I recently reached a point where my log files reach the OS max
>> file
>> size in one day.
>
> Wow. What is size of Your logfile? AFAIR kernel 2.4.x has limit 2TB
> on single file (ext3 filesystem).
>
RSS Feed