[packages/wordpress] - migrated to apache 2.4

baggins baggins at pld-linux.org
Fri May 17 11:46:12 CEST 2013


commit ec3e15032f6d22666c437d2bc1c25a847c73116d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri May 17 11:46:11 2013 +0200

    - migrated to apache 2.4

 httpd.conf     | 16 ++++++++++++++++
 wordpress.spec |  8 +++++---
 2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/wordpress.spec b/wordpress.spec
index d76e93e..3319061 100644
--- a/wordpress.spec
+++ b/wordpress.spec
@@ -21,6 +21,7 @@ Source6:	http://svn.automattic.com/wordpress-i18n/et/tags/%{version}/messages/et
 # Source6-md5:	faccf42481d5bf742b019c24a3c6251a
 Source7:	http://svn.automattic.com/wordpress-i18n/pl_PL/tags/%{version}/messages/pl_PL.po
 # Source7-md5:	8c9038410b596f9c705cc006dcdd5960
+Source8:	httpd.conf
 Patch0:		configpath.patch
 Patch1:		multisite.patch
 Patch2:		%{name}.patch
@@ -53,6 +54,7 @@ Requires:	php-phpmailer >= 2.0.4
 Requires:	php-simplepie >= 1.2
 Requires:	webapps
 Requires:	webserver(php)
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -200,8 +202,8 @@ install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/wp-setup
 ln -s %{_bindir}/wp-setup $RPM_BUILD_ROOT%{_appdir}/wp-setup.sh
 ln -s %{_bindir}/wp-secure $RPM_BUILD_ROOT%{_appdir}/wp-secure.sh
 
-cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 
 %clean
@@ -238,10 +240,10 @@ fi
 %triggerun -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerun -- lighttpd
diff --git a/httpd.conf b/httpd.conf
new file mode 100644
index 0000000..80d7567
--- /dev/null
+++ b/httpd.conf
@@ -0,0 +1,16 @@
+Alias /wordpress /usr/share/wordpress
+
+<Directory /usr/share/wordpress>
+	Require all granted
+	php_admin_flag engine on
+	php_admin_value open_basedir "/usr/share/wordpress:/etc/webapps/wordpress"
+
+	<IfModule mod_rewrite.c>
+		Options +FollowSymLinks
+		RewriteEngine On
+		RewriteBase /wordpress/
+		RewriteCond %{REQUEST_FILENAME} !-f
+		RewriteCond %{REQUEST_FILENAME} !-d
+		RewriteRule . /wordpress/index.php [L]
+	</IfModule>
+</Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wordpress.git/commitdiff/ec3e15032f6d22666c437d2bc1c25a847c73116d



More information about the pld-cvs-commit mailing list