#1156 hub: unlimited NameWidth for kojifiles Apache location
Merged 3 years ago by mikem. Opened 3 years ago by ktdreyer.
ktdreyer/koji hub-httpd-namewidth  into  master

file modified
@@ -28,6 +28,7 @@ 

      #you will need to follow all symlinks instead, e.g.

      #Options Indexes FollowSymLinks

      AllowOverride None

+     IndexOptions +NameWidth=*

      <IfVersion < 2.4>

          Order allow,deny

          Allow from all

Prior to this change, Apache's mod_autoindex would limit the file name lengths in when it displayed directory and file lists under the archive location /kojifiles.

Koji archive filenames are often be longer than mod_autoindex's default of 20 bytes.

Configure mod_autoindex to show the entire filenames. This makes it easier for users to browse /kojifiles to see at a glance which files are stored.

This seems like it might be a 2.4 specific directive. If so, perhaps it should be in the ifVersion block.

I looked at the differences between RHEL 6 (Apache 2.2) and RHEL 7 (Apache 2.4).

I've tested this config option on both, and it works on both.

One difference I see between RHEL 6 and RHEL 7 is that RHEL 6's httpd ships with a custom /etc/httpd/conf/httpd.conf that sets some IndexOptions by default:

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

In RHEL 7, jorris sync'd the packaging with upstream's httpd.conf, which contains no IndexOptions settings.

I've amended this commit to use + to avoid clobbering the other IndexOptions settings.

rebased onto 726eb41

3 years ago

Ah, ok then. Thanks for the update

Commit fa9d18a fixes this pull-request

Pull-Request has been merged by mikem

3 years ago