You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Koga Youichirou <y-...@apache.or.jp> on 2002/07/22 06:14:52 UTC

proxy request handling bug?

I found that 1.3.26 and 2.0.39 without mod_proxy accept proxy requests
and treat them as requsts to its URIs.

Is this behavior right?

eg)
(request)
GET http://some.where/cgi-bin/printenv HTTP/1.1
Host: some.where

(response)
HTTP/1.1 200 OK
Date: Mon, 22 Jul 2002 04:06:20 GMT
Server: Apache/2.0.39 (Unix)
Transfer-Encoding: chunked
Content-Type: text/plain; charset=ISO-8859-1

247
DOCUMENT_ROOT="/usr/local/apache2/htdocs"
GATEWAY_INTERFACE="CGI/1.1"
HTTP_HOST="some.where"
PATH="(some paths...)"
QUERY_STRING=""
REMOTE_ADDR="(client's IP address)"
REMOTE_PORT="(client's source port)"
REQUEST_METHOD="GET"
REQUEST_URI="http://some.where/cgi-bin/printenv"
SCRIPT_FILENAME="/usr/local/apache2/cgi-bin/printenv"
SCRIPT_NAME="/cgi-bin/printenv"
SERVER_ADDR="(server's IP address)"
SERVER_ADMIN="www@my.domain"
SERVER_NAME="some.where"
SERVER_PORT="80"
SERVER_PROTOCOL="HTTP/1.1"
SERVER_SIGNATURE=""
SERVER_SOFTWARE="Apache/2.0.39 (Unix)"

0

-- Koga, Youichirou

Re: proxy request handling bug?

Posted by Zvi Har'El <rl...@math.technion.ac.il>.
On Mon, 22 Jul 2002 11:03:57 +0200, Graham Leggett wrote about "Re: proxy request handling bug?":
> Koga Youichirou wrote:
> 
> >I found that 1.3.26 and 2.0.39 without mod_proxy accept proxy requests
> >and treat them as requsts to its URIs.
> >
> >Is this behavior right?
> 
> As far as I am aware, yes. If an attempt is made to fetch data on a 
> virtual host not configured locally, Apache serves the default config.
> 
> Remember that specifying the sitename in the URI after the GET is 
> (AFAIK) just as valid for normal webservers as it is for proxies.
> 

To quote, if I may, from the RFC:

   To allow for transition to absoluteURIs in all requests in future
   versions of HTTP, all HTTP/1.1 servers MUST accept the absoluteURI
   form in requests, even though HTTP/1.1 clients will only generate
   them in requests to proxies.

Best,

Zvi.

-- 
Dr. Zvi Har'El     mailto:rl@math.technion.ac.il     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                                     Monday, 13 Av 5762, 22 July 2002, 12:10PM

Re: proxy request handling bug?

Posted by Graham Leggett <mi...@sharp.fm>.
Koga Youichirou wrote:

> I found that 1.3.26 and 2.0.39 without mod_proxy accept proxy requests
> and treat them as requsts to its URIs.
> 
> Is this behavior right?

As far as I am aware, yes. If an attempt is made to fetch data on a 
virtual host not configured locally, Apache serves the default config.

Remember that specifying the sitename in the URI after the GET is 
(AFAIK) just as valid for normal webservers as it is for proxies.

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm 
	"There's a moon
					over Bourbon Street
						tonight..."