Package: wordpress
Version: 2.5.1-11+lenny2
Severity: wishlist
Tags: patch

The patch attached to this email allows wp-config.php to support access
using Aliases instead of Virtual Hosts.  The patch does not provide creation
of the required directories or databases or the config file however if the
patch was included it would mean that I would not have to re-edit
wp-config.php after upgrading the package.

Note that the patch works by using the first component of the URL as the
config file name.  So an Alias for /blog or /news will work.


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.2-bytemark-kvm-tickless-2009-05-05
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages wordpress depends on:
ii  apache2           2.2.9-10+lenny6        Apache HTTP Server metapackage
ii  apache2-mpm-prefo 2.2.9-10+lenny6        Apache HTTP Server - traditional n
ii  libapache2-mod-ph 5.2.6.dfsg.1-1+lenny4  server-side, HTML-embedded scripti
ii  libjs-prototype   1.6.0.2-4              JavaScript Framework for dynamic w
ii  libjs-scriptaculo 1.8.1-5                JavaScript library for dynamic web
ii  libphp-phpmailer  1.73-6                 full featured email transfer class
ii  libphp-snoopy     1.2.4-1                Snoopy is a PHP class that simulat
ii  mysql-client-5.0  5.0.51a-24+lenny2+spu1 MySQL database client binaries
ii  php5              5.2.6.dfsg.1-1+lenny4  server-side, HTML-embedded scripti
ii  php5-gd           5.2.6.dfsg.1-1+lenny4  GD module for php5
ii  php5-mysql        5.2.6.dfsg.1-1+lenny4  MySQL module for php5
ii  tinymce           3.0.8-1                platform independent web based Jav

wordpress recommends no packages.

Versions of packages wordpress suggests:
ii  mysql-server-5.0  5.0.51a-24+lenny2+spu1 MySQL database server binaries

-- no debconf information
--- wp-config.php.orig  2010-02-08 18:29:06.000000000 +0000
+++ wp-config.php       2010-02-08 20:03:27.000000000 +0000
@@ -7,10 +7,15 @@
     #http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440572 (underscores, not 
dashes)
     $debian_server = preg_replace('/:.*/', "", $_SERVER['HTTP_HOST']);
     $debian_file = '/etc/wordpress/config-'.strtolower($debian_server).'.php';
+    if (!file_exists($debian_file) && $_SERVER['REQUEST_URI'] != '') {
+        $debian_server = preg_replace('_^/([^/]*).*_', '$1', 
$_SERVER['REQUEST_URI']);
+        $debian_file = 
'/etc/wordpress/config-'.strtolower($debian_server).'.php';
+    }
 
     if (!file_exists($debian_file)) {
         header("HTTP/1.0 404 Not Found");
-        echo "404 Not found";
+        echo "404 Not found (blog \"$debian_server\")";
+       exit;
     }
 
     require_once($debian_file);

Reply via email to