[imp] SERVER_NAME vs SERVER_HOST

Oliver Schulze L. oliver@samera.com.py
Sat, 30 Mar 2002 16:54:19 -0300


Hi Jon,
I found the solution and the problem was in my apache config file.

I need to add a 'Port' directive to the virtual host, like this:
<VirtualHost 192.168.1.3:81>
   ServerAdmin ...
   DocumentRoot ...
   ServerName mail.example.com
   Port 81
   ServerAlias mail.example.com.us
   ErrorLog ...
   CustomLog ...
</VirtualHost>

The key keywords are: ServerName and Port
Both are used by IMP and should be inside every <VirtualHost>

Now I can use IMP in port 80, 81, 443 and 444 :-)

Oliver

Jon Parise wrote:

>On Wed, Mar 27, 2002 at 06:32:50AM -0300, Oliver Schulze L. wrote:
>
>>$GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME']
>>in /horde/config/registry.php
>>
>
>[snip]
> 
>
>>I look in phpinfo() and the variable that solve the problem is:
>>$GLOBALS['HTTP_SERVER_VARS']['HTTP_HOST']
>>
>
>[snip]
>
>>Can this be a patch?
>>
>
>Because you can solve your problem by changing a configuration
>value, I don't see the reason to change the default.  I'm also
>not sure $HTTP_HOST will be valid for all web servers (e.g. IIS,
>iPlanet, etc.).
>

-- 
Oliver Schulze L.
oliver@samera.com.py
Asuncion-Paraguay