summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBret McMillan <bretm@koom.usersys.redhat.com>2008-06-03 11:36:22 -0400
committerBret McMillan <bretm@redhat.com>2008-09-02 16:36:30 -0400
commit29712389b77b1280c644b00fe4e3259c4233a757 (patch)
tree7d3abf0d02659061d77467b8e8dfe16382a6bde9
parent101e8fa5745b4c19bafde32057a73317a27b461c (diff)
downloadwordpress-mu-29712389b77b1280c644b00fe4e3259c4233a757.tar.gz
wordpress-mu-29712389b77b1280c644b00fe4e3259c4233a757.tar.xz
wordpress-mu-29712389b77b1280c644b00fe4e3259c4233a757.zip
clean baseline for fedora source
-rw-r--r--README.fedora9
-rw-r--r--htaccess.dist32
-rw-r--r--wordpress-mu-httpd-conf25
3 files changed, 40 insertions, 26 deletions
diff --git a/README.fedora b/README.fedora
new file mode 100644
index 0000000..61b32ec
--- /dev/null
+++ b/README.fedora
@@ -0,0 +1,9 @@
+Fedora-specific packaging notes:
+
+* WordPress-MU is installed by default to something like:
+ www.foo.com/wordpress-mu/
+
+* the content of htaccess.dist has been ported to a conf.d-compatible config file
+
+* if you utilize SSL, please review http://codex.wordpress.org/Administration_Over_SSL
+
diff --git a/htaccess.dist b/htaccess.dist
index a10abfe..0c5a33a 100644
--- a/htaccess.dist
+++ b/htaccess.dist
@@ -1,26 +1,6 @@
-RewriteEngine On
-RewriteBase BASE/
-
-#uploaded files
-RewriteRule ^(.*/)?files/$ index.php [L]
-RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
-RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
-
-# add a trailing slash to /wp-admin
-RewriteCond %{REQUEST_URI} ^.*/wp-admin$
-RewriteRule ^(.+)$ $1/ [R=301,L]
-
-RewriteCond %{REQUEST_FILENAME} -f [OR]
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteRule . - [L]
-RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
-RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
-RewriteRule . index.php [L]
-
-<IfModule mod_security.c>
-<Files async-upload.php>
-SecFilterEngine Off
-SecFilterScanPOST Off
-</Files>
-</IfModule>
-
+# NOTICE: contents moved to wordpress-mu-httpd-conf
+#
+# That file gets dropped into /etc/httpd/conf.d/wordpress-mu.conf
+#
+# Need to keep this here so that wpmu's current installer still works,
+# and so that rpmlint isn't unhappy w/ an empty file.
diff --git a/wordpress-mu-httpd-conf b/wordpress-mu-httpd-conf
new file mode 100644
index 0000000..49685e8
--- /dev/null
+++ b/wordpress-mu-httpd-conf
@@ -0,0 +1,25 @@
+Alias /wordpress-mu /usr/share/wordpress-mu
+
+<Directory /usr/share/wordpress-mu>
+ AllowOverride Options
+ RewriteEngine On
+
+ RewriteBase /wordpress-mu/
+
+ #uploaded files
+ RewriteRule ^(.*/)?files/$ index.php [L]
+ RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
+ RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
+
+ # add a trailing slash to /wp-admin
+ RewriteCond %{REQUEST_URI} ^.*/wp-admin$
+ RewriteRule ^(.+)$ $1/ [R=301,L]
+
+ RewriteCond %{REQUEST_FILENAME} -f [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule . - [L]
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
+ RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
+ RewriteRule . index.php [L]
+</Directory>
+