packages: wordpress/lighttpd.conf - vhost config from wpmu

glen glen at pld-linux.org
Thu Sep 23 22:10:22 CEST 2010


Author: glen                         Date: Thu Sep 23 20:10:22 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- vhost config from wpmu

---- Files affected:
packages/wordpress:
   lighttpd.conf (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/wordpress/lighttpd.conf
diff -u packages/wordpress/lighttpd.conf:1.2 packages/wordpress/lighttpd.conf:1.3
--- packages/wordpress/lighttpd.conf:1.2	Sun Sep 30 23:42:47 2007
+++ packages/wordpress/lighttpd.conf	Thu Sep 23 22:10:17 2010
@@ -2,5 +2,22 @@
 alias.url += (
 	"/wordpress" => "/usr/share/wordpress",
 )
+
+# http://codex.wordpress.org/Installing_WPMU#Rewriting_Rules_for_others_HTTP_Server
+$HTTP["host"] == "blogs.example.org" {
+	server.name = "blogs.example.org"
+	server.document-root = "/usr/share/wordpress"
+
+	url.rewrite-once = (
+		# wpmu rewrite rules
+		"^/(.*)?/?files/$" => "index.php",
+		"^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2",
+		"^/wp-.*$" => "$0",
+		"^/([_.0-9a-zA-Z-]+/)?(wp-.*)" => "$2",
+		"^/([_.0-9a-zA-Z-]+/)?(.*\.php)$" => "$2",
+		"(\?.*)$" => "index.php$1",
+		".+" => "index.php",
+	)
+}
 	
 # vim:ts=4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/wordpress/lighttpd.conf?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list