Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I see a lot of 'File name too long' errors in apache error log on Debian.

How can I fix this?

share|improve this question
More details, maybe an excerpt from the logfiles maybe? – Sven May 14 '12 at 12:55
up vote 2 down vote accepted

This is a known bug and or known problem.

This could be the bug:

Or your file name might actually be too long, in that case, make sure your file-names (or anything between 2 slashes) is not longer then 255 characters.

Also, make sure to revise any mod_rewrite-rules you have, they can also cause this behavior.

When you have an argument/filename longer then 255 chars, apache will check this against your file system limits.

More info on the max filename length can be found here:

There aren't a lot of them that allow for longer file names, so you will have to make them shorter, no other way around them.

share|improve this answer
Well, since I use 'clean urls' in non-western alphabet the urls may actually exceede 255 characterless. How exactly can I increase the limit? Thanks – alfish May 14 '12 at 13:17
Updated answer above. – Bart De Vos May 14 '12 at 13:34

protected by Community Feb 7 '15 at 6:48

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.