use redirects for lang-specific /manual/ URLs
This commit is contained in:
parent
74880df89c
commit
a4ba0cdfda
@ -8,7 +8,7 @@
|
|||||||
Summary: Apache HTTP Server
|
Summary: Apache HTTP Server
|
||||||
Name: httpd
|
Name: httpd
|
||||||
Version: 2.4.18
|
Version: 2.4.18
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
URL: http://httpd.apache.org/
|
URL: http://httpd.apache.org/
|
||||||
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
|
||||||
Source1: index.html
|
Source1: index.html
|
||||||
@ -672,6 +672,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_rpmconfigdir}/macros.d/macros.httpd
|
%{_rpmconfigdir}/macros.d/macros.httpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 6 2016 Joe Orton <jorton@redhat.com> - 2.4.18-5
|
||||||
|
- use redirects for lang-specific /manual/ URLs
|
||||||
|
|
||||||
* Fri Mar 18 2016 Joe Orton <jorton@redhat.com> - 2.4.18-4
|
* Fri Mar 18 2016 Joe Orton <jorton@redhat.com> - 2.4.18-4
|
||||||
- fix welcome page HTML validity (Ville Skyttä)
|
- fix welcome page HTML validity (Ville Skyttä)
|
||||||
|
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
# This configuration file allows the manual to be accessed at
|
# This configuration file allows the manual to be accessed at
|
||||||
# http://localhost/manual/
|
# http://localhost/manual/
|
||||||
#
|
#
|
||||||
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/usr/share/httpd/manual$1"
|
Alias /manual /usr/share/httpd/manual
|
||||||
|
|
||||||
<Directory "/usr/share/httpd/manual">
|
<Directory "/usr/share/httpd/manual">
|
||||||
Options Indexes
|
Options Indexes
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
||||||
|
RedirectMatch 301 ^/manual/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)(/.*)$ "/manual$1
|
||||||
</Directory>
|
</Directory>
|
||||||
|
Loading…
Reference in New Issue
Block a user