TransWikia.com

Using mod_rewrite got some File does not exist messages in Apache logs

Server Fault Asked by fabrik on December 22, 2021

My mod_rewrite rules are working fine but sometimes similar errors showing up in my error logs:

File does not exist: /var/www/examplesite/exampleurl

Of course the requested directory doesn’t exists, page properly served but my error logs growing.

What can cause these errors?

One Answer

You should probably start by changing the loglevel for your rewrite engine:

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriteloglevel

Example

RewriteLogLevel 3

This should help diagnose if there is an issue with the rewrite rules or perhaps some other parameters for the client requests(perhaps they have incorrect Host parameters, etc).

Answered by polynomial on December 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP