[wp-hackers] When HTTP_HOST does not point to the blog
skeltoac at gmail.com
Tue Jun 24 20:03:51 GMT 2008
On Tue, Jun 24, 2008 at 1:29 PM, Oliver Hohlfeld <oliver at ohohlfeld.com> wrote:
> I'm using WordPress on an Apache Vhost which -- for some reason I didn't
> figure out so far - does not set the correct HTTP_HOST as specified in the
> ServerName setting. Thus, requests to $_SERVER['HTTP_HOST'] will not be
> directed to the requested blog.
$_SERVER['HTTP_*'] are populated with HTTP request headers. So if I
include this header:
you will find:
$_SERVER['HTTP_X_ANDY'] == 'awesome'
WordPress and countless themes and plugins rely on HTTP_HOST. You must
figure out why it is not being set to the value of the HTTP Host
More information about the wp-hackers