You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hugh Williams <hu...@soco.agilent.com> on 2002/10/09 21:05:38 UTC
[users@httpd] Re: proxypass behavior question
Boyle Owen wrote:
> This has nothing to do with the proxying (which is always internal to the server and so invisible to the client). It is that paths without trailing slashes cause a redirect, e.g.
>
> http://server/foo
>
> causes a redirect to
>
> http://server/foo/
>
> When assembling the redirected URL, apache needs a servername. There are two possibilities which are controlled by the UseCanonicalName directive:
>
> UseCanonicalName on - use the name defined with "ServerName".
> UseCanonicalName off - use the name supplied by the client on the initial request.
>
> I think you need "UseCanonicalName off" so it keeps what the user typed in (n.b. default is "on" - which would explain why it is switching when clients come in with the ServerAlias name).
And bingo! This appears to have taken care of the display, although I
still need a few more tests... Thanks to both the posters who pointed
me to the path of true enlightenment...
> By the way, you have rather a complicated setup - your clients come in on an alias and you proxy them to the mainserver but on a different port... Well, I guess there's a good reason :-)
Well, 'mainserver' isn't exactly correct... the port redirect sends
those named requests off to a Java listener. The actual server name is
something else entirely. This is all so that if the hardware fails, we
can get back up and running quickly by moving the CNAME records to
another system, where the httpd.conf file is prepared and waiting,
without having to issue or move IP addresses.
hugh
--
Hugh Williams "Rome did not create a great empire by
hugh_williams@agilent.com having meetings...they did it by
Agilent Technologies killing all those who opposed them."
Santa Rosa 2LS-R
(707)-577-4941
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org