From: "Sander Temme" <[EMAIL PROTECTED]>
Try connecting with a client that shows you exactly the response
headers, like Curl or IE with IEWatch.
I have tried, but I can see only the headers sent to the proxy, and those
returned by the proxy. I cannot see the headers sent by the proxy to the
back-end server, neither the headers sent by the back-end server to the
proxy, and there are the errors.
Here is what I can see:
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: ro,en-us;q=0.5
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
2.0.50727)
Host: www.brk.ro:85
Connection: Keep-Alive
Cookie: trafic_history=1168348280*1168362582*2
HTTP/1.1 400 Bad Request
Date: Mon, 22 Jan 2007 21:10:55 GMT
Server: Apache/2.2.3 (Win32) PHP/5.2.0 mod_perl/2.0.3 Perl/v5.8.8
Content-Length: 416
Content-Type: text/html; charset=iso-8859-1
Connection: close
Could it be a problem that I have both mod_perl and mod_php on the same
Apache? In the past I remember that there were some issues when having these
2 modules. Now I don't know if it is the case anymore...
Have you considered the ProxyBadHeader directive?
Yes and I have used it with "Ignore" and with "StartBody", but I received
the same error in the browser:
400 Bad Request
Bad Request
Your browser sent a request that this server could not understand.
Request header field is missing ':' separator.
GET / HTTP/1.1
Apache/2.2.3 (Win32) PHP/5.2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at
localhost Port 86
And in the error log:
[Mon Jan 22 23:11:36 2007] [error] [client 127.0.0.1] request failed: error
reading the headers
Here are the settings for the 2 virtual hosts, the first is for the proxy,
and the second for the back-end:
Listen 127.0.0.1:85
Listen 127.0.0.1:86
NameVirtualHost 127.0.0.1:85
<VirtualHost 127.0.0.1:85>
# www.brk.ro has the address 127.0.0.1
ServerName www.brk.ro:85
DocumentRoot e:/web/localhost/html
<Directory e:/web/localhost/html>
Options +Indexes
Allow from all
</Directory>
ProxyRequests Off
ProxyPass / http://localhost:86/
ProxyPassReverse / http://localhost:86/
ProxyPreserveHost On
ProxyBadHeader Ignore
# I have also tried:
#SetEnv force-proxy-request-1.0 1
#SetEnv proxy-nokeepalive 1
#SetEnv proxy-sendcl 1
#SetEnv proxy-sendchunked 1
# sends content-length:
# proxy-sendcl
# Use chunked encoding:
# proxy-sendchunked
</VirtualHost>
<VirtualHost 127.0.0.1:86>
ServerName localhost:86
DocumentRoot e:/web/localhost/html
<Directory e:/web/localhost/html>
Options +Indexes
Allow from all
</Directory>
</VirtualHost>
Is there anyone using mod_proxy under Windows that can share the settings
for the mod_proxy virtualhost?
Thank you.
Octavian
Octavian
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]