| Summary | HTTP_HOST |
| Queue | Horde Base |
| Queue Version | 3.0.2 |
| Type | Bug |
| State | Not A Bug |
| Priority | 2. Medium |
| Owners | |
| Requester | john (at) oztralis (dot) com (dot) au |
| Created | 2/9/05 (7808 days ago) |
| Due | |
| Updated | 2/10/05 (7807 days ago) |
| Assigned | 2/9/05 (7808 days ago) |
| Resolved | 2/9/05 (7808 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
identical entries in servers.php, one that has preferred = 'domain'
and one that has preferred='domain:80'
that doesn't really seem right to me, since essentially they're the same....
variables) with the 'preferred' setting from servers.php. So again
it's a configuration issue.
And I really have no idea why you are referring to the radius auth
driver, that btw. uses HTTP_HOST only if you didn't configure a server
name. Again.
the HTTP_HOST header is used to determine the mailserver to use, and
in lib/Horde/Auth/radius.php in function _setParams() it is used to
set the NAS identifier.'
Closing the bug while it persists? I'm confused!
Would you mind explaining why you don't believe this to be a bug?
may get overwritten by updates, which seems suboptimal.
btw,.... with regards to the missing chunk header, I've found that
setting the following apache directive stops that from happening,. but
I'm not sure of the implications:
BrowserMatch ".*" downgrade-1.0 force-response-1.0
Kind Regards,
John
State ⇒ Not A Bug
work for you, use some code that does.
virtual hosts.
it does $vdomain = getenv('HTTP_HOST'); which means the username used
to authenticate agains imap becomes 'user@domain:80' if the host
header includes the port number, EVEN if the port number is 80.
Likewise, in imp/lib/IMP.php in function isPreferredServer() the
HTTP_HOST header is used to determine the mailserver to use, and in
lib/Horde/Auth/radius.php in function _setParams() it is used to set
the NAS identifier.
Under normal circumstances I wouldn't think this would present a
problem since the host header normally doesn't contain a :port number
when running on port 80, but reverse proxies such as Pound
(http://apsis.ch/pound) adds the port number explicitly.
You can test this behaviour by adding :80 to the url in your browser.
I have also noticed another problem, which I believe to be related to
Horde/IMP. since I run other php based solutions on the same backend
servers and have only ever seen this happen with Horde/IMP...:
On occasion, a http request will fail, and either the navigation
frame, or the main frame will fail to load.
using lwp-request to investigate the problem, I get this:
500 EOF when chunk header expected.
Kind Regards,
John Hansen
State ⇒ Feedback
HTTP_HOST have to do with authentication?
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ HTTP_HOST
Queue ⇒ Horde Base
fails against imap accounts using the format ${user}@${HTTP_HOST}
I believe HTTP_HOST should _always_ be parsed for host:port and only
use the host part....
This becomes a problem when using reverse proxies, which always add
the port number explicitly, even when connecting to port 80, eg:
GET / HTTP/1.1
Host: hostname:80
Kind Regards,
John