public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Joe Orton <jorton@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/httpd] f43: autoindex.conf: disable Indexes for /icons/ by default
Date: Thu, 01 Oct 2026 16:46:18 GMT [thread overview]
Message-ID: <179087317897.1.14068398507961366215.rpms-httpd-3d25d1b8d47d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/httpd
Branch : f43
Commit : 3d25d1b8d47dbfc4e972f8df1c7275397b8ac8d4
Author : Joe Orton <jorton@redhat.com>
Date : 2026-02-03T15:12:25+00:00
Stats : +66/-66 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/httpd/c/3d25d1b8d47dbfc4e972f8df1c7275397b8ac8d4?branch=f43
Log:
autoindex.conf: disable Indexes for /icons/ by default
---
diff --git a/httpd-2.4.54-icons.patch b/httpd-2.4.54-icons.patch
deleted file mode 100644
index efc0c4d..0000000
--- a/httpd-2.4.54-icons.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-diff --git a/docs/conf/extra/httpd-autoindex.conf.in b/docs/conf/extra/httpd-autoindex.conf.in
-index 51b02ed..93a2b87 100644
---- a/docs/conf/extra/httpd-autoindex.conf.in
-+++ b/docs/conf/extra/httpd-autoindex.conf.in
-@@ -21,7 +21,7 @@ IndexOptions FancyIndexing HTMLTable VersionSort
- Alias /icons/ "@exp_iconsdir@/"
-
- <Directory "@exp_iconsdir@">
-- Options Indexes MultiViews
-+ Options Indexes MultiViews FollowSymlinks
- AllowOverride None
- Require all granted
- </Directory>
-@@ -37,6 +37,7 @@ AddIconByType (TXT,/icons/text.gif) text/*
- AddIconByType (IMG,/icons/image2.gif) image/*
- AddIconByType (SND,/icons/sound2.gif) audio/*
- AddIconByType (VID,/icons/movie.gif) video/*
-+AddIconByType /icons/bomb.gif application/x-coredump
-
- AddIcon /icons/binary.gif .bin .exe
- AddIcon /icons/binhex.gif .hqx
-@@ -53,7 +54,6 @@ AddIcon /icons/dvi.gif .dvi
- AddIcon /icons/uuencoded.gif .uu
- AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
- AddIcon /icons/tex.gif .tex
--AddIcon /icons/bomb.gif core
-
- AddIcon /icons/back.gif ..
- AddIcon /icons/hand.right.gif README
-diff --git a/docs/conf/magic b/docs/conf/magic
-index bc891d9..9a41b44 100644
---- a/docs/conf/magic
-+++ b/docs/conf/magic
-@@ -383,3 +383,15 @@
- 4 string moov video/quicktime
- 4 string mdat video/quicktime
-
-+
-+#------------------------------------------------------------------------------
-+# application/x-coredump for LE/BE ELF
-+#
-+0 string \177ELF
-+>5 byte 1
-+>16 leshort 4 application/x-coredump
-+
-+0 string \177ELF
-+>5 byte 2
-+>16 beshort 4 application/x-coredump
-+
diff --git a/httpd-2.4.66-autoindex.patch b/httpd-2.4.66-autoindex.patch
new file mode 100644
index 0000000..bc537f3
--- /dev/null
+++ b/httpd-2.4.66-autoindex.patch
@@ -0,0 +1,61 @@
+
+- Use charset=UTF-8 on autoindex response pages
+- Ensure that only core dumps get the core-dump icon;
+ the upstream applies also to any directory matching "core"
+- Disable autoindex for /icons/
+- Do follow symlinks in /icons/ since poweredby.png is a symlink
+
+--- httpd-2.4.66/docs/conf/extra/httpd-autoindex.conf.in.8
++++ httpd-2.4.66/docs/conf/extra/httpd-autoindex.conf.in
+@@ -13,7 +13,7 @@
+ # IndexOptions: Controls the appearance of server-generated directory
+ # listings.
+ #
+-IndexOptions FancyIndexing HTMLTable VersionSort
++IndexOptions FancyIndexing HTMLTable VersionSort Charset=UTF-8
+
+ # We include the /icons/ alias for FancyIndexed directory listings. If
+ # you do not use FancyIndexing, you may comment this out.
+@@ -21,7 +21,7 @@
+ Alias /icons/ "@exp_iconsdir@/"
+
+ <Directory "@exp_iconsdir@">
+- Options Indexes MultiViews
++ Options MultiViews FollowSymlinks
+ AllowOverride None
+ Require all granted
+ </Directory>
+@@ -37,6 +37,7 @@
+ AddIconByType (IMG,/icons/image2.gif) image/*
+ AddIconByType (SND,/icons/sound2.gif) audio/*
+ AddIconByType (VID,/icons/movie.gif) video/*
++AddIconByType /icons/bomb.gif application/x-coredump
+
+ AddIcon /icons/binary.gif .bin .exe
+ AddIcon /icons/binhex.gif .hqx
+@@ -53,7 +54,6 @@
+ AddIcon /icons/uuencoded.gif .uu
+ AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
+ AddIcon /icons/tex.gif .tex
+-AddIcon /icons/bomb.gif core
+
+ AddIcon /icons/back.gif ..
+ AddIcon /icons/hand.right.gif README
+--- httpd-2.4.66/docs/conf/magic.8
++++ httpd-2.4.66/docs/conf/magic
+@@ -383,3 +383,15 @@
+ 4 string moov video/quicktime
+ 4 string mdat video/quicktime
+
++
++#------------------------------------------------------------------------------
++# application/x-coredump for LE/BE ELF
++#
++0 string \177ELF
++>5 byte 1
++>16 leshort 4 application/x-coredump
++
++0 string \177ELF
++>5 byte 2
++>16 beshort 4 application/x-coredump
++
diff --git a/httpd-2.4.66-index-utf8.patch b/httpd-2.4.66-index-utf8.patch
deleted file mode 100644
index 363d6ec..0000000
--- a/httpd-2.4.66-index-utf8.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-
-Use charset=UTF-8 in mod_autoindex output by default.
-
---- httpd-2.4.66/docs/conf/extra/httpd-autoindex.conf.in.index-utf8
-+++ httpd-2.4.66/docs/conf/extra/httpd-autoindex.conf.in
-@@ -13,7 +13,7 @@
- # IndexOptions: Controls the appearance of server-generated directory
- # listings.
- #
--IndexOptions FancyIndexing HTMLTable VersionSort
-+IndexOptions FancyIndexing HTMLTable VersionSort Charset=UTF-8
-
- # We include the /icons/ alias for FancyIndexed directory listings. If
- # you do not use FancyIndexing, you may comment this out.
diff --git a/httpd.spec b/httpd.spec
index d8c4997..505fa75 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -28,7 +28,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.66
-Release: 3%{?dist}
+Release: 4%{?dist}
URL: https://httpd.apache.org/
Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2.asc
@@ -89,14 +89,13 @@ Patch20: httpd-2.4.48-r1842929+.patch
Patch21: httpd-2.4.64-mod_systemd.patch
Patch22: httpd-2.4.53-export.patch
Patch23: httpd-2.4.43-corelimit.patch
-Patch24: httpd-2.4.54-icons.patch
+Patch24: httpd-2.4.66-autoindex.patch
Patch25: httpd-2.4.43-cachehardmax.patch
Patch26: httpd-2.4.43-sslciphdefault.patch
Patch27: httpd-2.4.64-sslprotdefault.patch
Patch28: httpd-2.4.43-logjournal.patch
Patch29: httpd-2.4.63-r1912477+.patch
Patch30: httpd-2.4.64-separate-systemd-fns.patch
-Patch31: httpd-2.4.66-index-utf8.patch
# Bug fixes
# https://bugzilla.redhat.com/show_bug.cgi?id=1397243
@@ -851,6 +850,9 @@ exit $rv
%{_rpmconfigdir}/macros.d/macros.httpd
%changelog
+* Tue Feb 03 2026 Joe Orton <jorton@redhat.com> - 2.4.66-4
+- autoindex.conf: disable Indexes for /icons/ by default
+
* Tue Jan 27 2026 Joe Orton <jorton@redhat.com> - 2.4.66-3
- disable worker mpm for Fedora > 43
- autoindex.conf: add Charset=UTF-8 to default IndexOptions
reply other threads:[~2026-10-01 16:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179087317897.1.14068398507961366215.rpms-httpd-3d25d1b8d47d@fedoraproject.org \
--to=jorton@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox