I think I understand the cause of the problem, it's because the gitorious 
client script doesn't send a "Host: localhost" HTTP request header and a 
leading slash with the GET request to git/test/test/config:

[git@server9 gitorious]$ telnet localhost 81
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET git/test/test/config HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Thu, 24 Nov 2011 19:45:59 GMT
Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 
Phusion_Passenger/3.0.9
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Connection closed by foreign host.
[git@server9 gitorious]$ telnet localhost 81
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET /git/test/test/config HTTP/1.1

HTTP/1.1 400 Bad Request
Date: Thu, 24 Nov 2011 19:46:08 GMT
Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 
Phusion_Passenger/3.0.9
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Connection closed by foreign host.
[git@server9 gitorious]$ telnet localhost 81
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
GET /git/test/test/config HTTP/1.1
Host: localhost

HTTP/1.1 200 OK
Date: Thu, 24 Nov 2011 19:46:11 GMT
Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 
Phusion_Passenger/3.0.9
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.9
ETag: "1802ce10e06aa0436bb28d0ee3054781"
X-Runtime: 3
Cache-Control: public, max-age=600
Content-Length: 83
Status: 200
Content-Type: text/x-yaml; charset=utf-8

real_path:c6b/dc5/bb105432210a5e979d4289be81647530f6.git
force_pushing_denied:falseConnection closed by foreign host.
[git@server9 gitorious]$ 

Any ideas how to fix this?

TIA...

-- Ricardo Gladwell

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to