Apache Display Filename Length Limit Change

Changing Apache Displayable Filename Length Limit

This article introduces how to change the filename length limit that can be displayed in Apache. Change the filename length limit for index of. Setting the limit to none (matching the longest filename).

Shou Arisaka
1 min read
Nov 1, 2025

This article introduces how to change the filename length limit that can be displayed in Apache.

Change the filename length limit for index of.

Setting the limit to none (matching the longest filename).

.htaccess

IndexOptions NameWidth=*

Note that this setting can be configured per directory.

If you want to configure it per directory, please place an .htaccess file.

Summary

We introduced how to change the filename length limit that can be displayed in Apache.

If the filename length is long, this setting is convenient. Long filenames can also be handled by changing the filename, but changing the filename may result in broken links. Also, changing the filename may make the filename difficult to understand. Please be careful.

Thatโ€™s all. I hope this is helpful.

Share this article

Shou Arisaka Nov 1, 2025

๐Ÿ”— Copy Links