You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 1998/02/18 22:58:53 UTC

Q: get_server_name() check for proxy?

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;
check).

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?

    Martin
-- 
| S I E M E N S |  <Ma...@mch.sni.de>  |      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