Your message dated Fri, 15 Jun 2012 17:02:09 +0200
with message-id <[email protected]>
and subject line Re: Bug#568919: wordpress: Extend wp-config.php to support 
Alias access instead of VirtualHost
has caused the Debian Bug report #568919,
regarding wordpress: Extend wp-config.php to support Alias access instead of 
VirtualHost
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
568919: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568919
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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);

--- End Message ---
--- Begin Message ---
tag 568919 - patch
thanks

On Mon, 08 Feb 2010, Graham Cobb wrote:
> 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.

I don't really see much value in supporting this.

But if anything, it should be an extension of the vhost mechanism... i.e.
http://www.example.com/blog/ should try:
/etc/wordpress/config-www.example.com-blog.php
/etc/wordpress/config-www.example.com.php
/etc/wordpress/config-example.com.php
/etc/wordpress/config-default-blog.php
/etc/wordpress/config-default.php

Lacking this, for your personal needs you should handle all this
in /etc/wordpress/config-default.php to not have to override
the default wp-config.php.

Feel free to reopen if you want to implement the above mechanism
instead.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


--- End Message ---

Reply via email to