You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/04/05 19:39:17 UTC

DO NOT REPLY [Bug 11971] - HTTP proxy header "Via" with wrong hostname if ServerName not set or UseCanonicalName Off

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=11971>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=11971





------- Additional Comments From francois.pesce@gmail.com  2006-04-05 18:39 -------
Created an attachment (id=18027)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18027&action=view)
patch to fix Via: behavior when ServerName not set ot set or UseCanonicalName
Off

This also fix the :port appending behavior.
proxy_http.c was calling ap_get_server_name (resp. ap_get_server_port) to fill
Via: HTTP header, with server name (resp. server port), but these functions
were confident into request_rec informations and were even returning data from
the request : hostname from Host: (resp. Port from uri parsed).

The submitted patch might fix this bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org