split autoindex config to conf.d/autoindex.conf

ship additional example configs in docdir
This commit is contained in:
Joe Orton 2012-03-13 16:04:44 +00:00
parent 9c13a78f8b
commit c540f64f85
4 changed files with 25 additions and 23 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ x86_64
/httpd-2.2.21.tar.bz2 /httpd-2.2.21.tar.bz2
/clog /clog
/httpd-2.2.22.tar.bz2 /httpd-2.2.22.tar.bz2
/httpd-2.4.?

View File

@ -1,9 +1,9 @@
This directory holds Apache 2.0 module-specific configuration files; This directory holds configuration files for the Apache HTTP Server;
any files in this directory which have the ".conf" extension will be any files in this directory which have the ".conf" extension will be
processed as Apache configuration files. processed as httpd configuration files. The directory
/etc/httpd/conf.modules.d/ contains configuration stubs which load
modules.
Files are processed in alphabetical order, so if using configuration Files are processed in alphabetical order.
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

View File

@ -29,7 +29,6 @@ Source18: 00-ldap.conf
Source19: userdir.conf Source19: userdir.conf
Source20: ssl.conf Source20: ssl.conf
Source21: welcome.conf Source21: welcome.conf
Source22: manual.conf
# Documentation # Documentation
Source33: README.confd Source33: README.confd
# build/scripts patches # build/scripts patches
@ -219,11 +218,20 @@ for f in 00-base.conf 00-mpm.conf 00-lua.conf 01-cgi.conf 00-dav.conf \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/$f $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.modules.d/$f
done done
for f in welcome.conf manual.conf ssl.conf userdir.conf; do for f in welcome.conf ssl.conf userdir.conf; do
install -m 644 -p $RPM_SOURCE_DIR/$f \ install -m 644 -p $RPM_SOURCE_DIR/$f \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/$f $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/$f
done done
# Split-out extra config shipped as default in conf.d:
for f in manual autoindex; do
mv docs/conf/extra/httpd-${f}.conf \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/${f}.conf
done
# Extra config trimmed:
rm -v docs/conf/extra/httpd-{ssl,userdir}.conf
rm $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/*.conf rm $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/*.conf
install -m 644 -p $RPM_SOURCE_DIR/httpd.conf \ install -m 644 -p $RPM_SOURCE_DIR/httpd.conf \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf/httpd.conf
@ -241,9 +249,9 @@ install -m 644 -p $RPM_SOURCE_DIR/httpd.tmpfiles \
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav
# Create cache directory # Create cache directory
mkdir $RPM_BUILD_ROOT%{_localstatedir}/cache/httpd \ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/httpd \
$RPM_BUILD_ROOT%{_localstatedir}/cache/httpd/proxy \ $RPM_BUILD_ROOT%{_localstatedir}/cache/httpd/proxy \
$RPM_BUILD_ROOT%{_localstatedir}/cache/httpd/ssl $RPM_BUILD_ROOT%{_localstatedir}/cache/httpd/ssl
# Make the MMN accessible to module packages # Make the MMN accessible to module packages
echo %{mmnisa} > $RPM_BUILD_ROOT%{_includedir}/httpd/.mmn echo %{mmnisa} > $RPM_BUILD_ROOT%{_includedir}/httpd/.mmn
@ -414,6 +422,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root) %defattr(-,root,root)
%doc ABOUT_APACHE README CHANGES LICENSE VERSIONING NOTICE %doc ABOUT_APACHE README CHANGES LICENSE VERSIONING NOTICE
%doc docs/conf/extra/*.conf
%dir %{_sysconfdir}/httpd %dir %{_sysconfdir}/httpd
%{_sysconfdir}/httpd/modules %{_sysconfdir}/httpd/modules
@ -427,8 +436,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_sysconfdir}/httpd/conf.d %dir %{_sysconfdir}/httpd/conf.d
%{_sysconfdir}/httpd/conf.d/README %{_sysconfdir}/httpd/conf.d/README
%config(noreplace) %{_sysconfdir}/httpd/conf.d/welcome.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.d/userdir.conf %exclude %{_sysconfdir}/httpd/conf.d/ssl.conf
%exclude %{_sysconfdir}/httpd/conf.d/manual.conf
%dir %{_sysconfdir}/httpd/conf.modules.d %dir %{_sysconfdir}/httpd/conf.modules.d
%config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/*.conf %config(noreplace) %{_sysconfdir}/httpd/conf.modules.d/*.conf
@ -510,6 +520,8 @@ rm -rf $RPM_BUILD_ROOT
- default config: - default config:
* unrestricted access to (only) /var/www * unrestricted access to (only) /var/www
* remove (commented) Mutex, MaxRanges, ScriptSock * remove (commented) Mutex, MaxRanges, ScriptSock
* split autoindex config to conf.d/autoindex.conf
- ship additional example configs in docdir
* Tue Mar 6 2012 Joe Orton <jorton@redhat.com> - 2.4.1-1 * Tue Mar 6 2012 Joe Orton <jorton@redhat.com> - 2.4.1-1
- update to 2.4.1 - update to 2.4.1

View File

@ -1,11 +0,0 @@
#
# This configuration file allows the manual to be accessed at
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/usr/share/httpd/manual$1"
<Directory "/usr/share/httpd/manual">
Options Indexes
AllowOverride None
Require all granted
</Directory>