Re: SERVER_NAME vs. HTTP_HOST

Michael J Rubinsky <[email protected]> Sat, 29 Apr 2017 19:40:38 +0000
Newsgroups gmane.comp.horde.imp
Message-ID <20170429194038.Horde.h0d7etaJ2gLhINBClzYTm2N@h4.theupstairsroom.com>
Quoting Dr. Lars Hanke <[email protected]>:

> I built a Horde server in my DMZ. I can be reached via an internal  
> name and via an external name. The internal name cannot be resolved  
> outside of my LAN. The external name causes a quite looped route. So  
> it would be nice, if Horde produced links and redirects to the host  
> name in the original request.
>
> However, what happens is that Horde seems to use SERVER_NAME instead  
> of HTTP_HOST.

Horde uses whatever you tell it to use for this. It's the  
$conf['server']['name'] configuration value. See  
Administration->Config->Horde->General

  This currently causes horde to return an internal
> address, which makes the server unavailable from outside.
>
> Is there any way to solve it beyond using another virtual host for  
> external access?
>
> Any help appreciated,
>
>  - lars.
>
> -- 
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: [email protected]



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject

-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
(unnamed) (application/pgp-keys, 9.1 KB) - not displayed
signature.asc (application/pgp-signature, 821 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4

iQIcBAABAgAGBQJZBOw3AAoJEJGSgkbRsxbbZDoP/1nY17MaTzwXruazWT4nx0nW
wERNZiEfUlU0LzrzLoVGb5aMS9KYPXx8af+kWW5lUw7teVBNiv2nQO7hsyJn+8Yd
YNa89sqsuLl+vxDe9+sfTfbagtFuFhnnRFoJoXOtZPnrxT/4o7aFjk0DfsaVGK8n
z1dZDhmlpFhXKed8oYhiycr8Zzouyg4lDyJ2qBQuWGwbehGhB9+lJbPrHmfgmzPG
Fnp7FWiAm88XpkWGmPfVx3pfscC1aRrfG1HwU/kzOKalvHZTGtjMG2pBzP6M7TsT
YwYHdVi2YfUqGIqtDCZ1AmBlfD+9/UuFkAdL7Ux8zakYqBSM0P/8Nxj2oljxR7P7
ztHqS2estdGb5eppw13QZlsgOFLKKzng42hUAMugqLNtfO93SZyAYKiAff15xAOE
eIIo8IG7Mv6qZgAyKblzwpeHYXtEIGX35N5ZP/BxwJFfsk8lOw2bXgpiMpZJZyaG
gQhjsGc57vG3GxQPbljhJlFgbOp6IOT0VcJWg7rAr6FQ8nMwDp31+Lb3KPux/iNo
C7nV1OwwoGBSN9E+PAga5BeQb4xCQKS4OE8Ste2B8mlU/MN1ClgB8cDZ1pmtKT1u
xo9FT05r5GcfO0FhHs9kA5n/wF4LFzfDzs4y0cpwYcv4wAXxXN4cwaRFDZnG4e7o
K9wieSmWNyGijfcpkhw5
=J96m
-----END PGP SIGNATURE-----