SERVER_NAME vs SERVER_HOST
Oliver Schulze L.
oliver@samera.com.py
Wed, 27 Mar 2002 06:32:50 -0300
Hi,
I use Apache with an VirtualHostName with an alias.
The problem I'm having is that IMP does some redirection
using:
$GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']
in /horde/config/registry.php
And if you connect using the alias in apache, IMP redirects me to the
VirtualHostName and not the alias of the VirtualHostName.
I look in phpinfo() and the variable that solve the problem is:
$GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']
This is the config of apache:
<VirtualHost 192.168.1.3:80>
ServerAdmin ...
DocumentRoot ...
ServerName mail.example.com
ServerAlias mail.example.com.us
ErrorLog ...
CustomLog ...
</VirtualHost>
In this example, is you connect using mail.example.com.us you get:
SERVER_NAME=mail.example.com
SERVER_HOST=mail.example.com.us
Can this be a patch?
Oliver
--
Oliver Schulze L.
oliver@samera.com.py
Asuncion-Paraguay