httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <>
Subject Q: get_server_name() check for proxy?
Date Wed, 18 Feb 1998 21:58:53 GMT
Since a short while there is code in get_server_name() and get_server_port()
and construct_url() which looks like this:

    if (d->use_canonical_name & 1) return r->server->server_hostname;

(as opposed to the regular (r->hostname) ? r->hostname : r->server->server_hostname;

Now I wonder if there can be situations where one of these routines is
called when a proxy request is being served (r->proxyreq != 0). In such
a situation the real server name should always/never be returned,
depending on the caller's context.
I haven't dug thru the code yet; can such a situation occur?

| S I E M E N S |  <>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

View raw message