bad request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have tried the following 2 virtualhosts for testing if mod_proxy module works:

NameVirtualHost 127.0.0.1:85

# This is the proxy:
<VirtualHost 127.0.0.1:85>
ServerName localhost
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/
</VirtualHost>

<VirtualHost 127.0.0.1:86>
ServerName localhost
DocumentRoot e:/web/localhost/html

<Directory e:/web/localhost/html>
Options +Indexes
Allow from all
</Directory>
</VirtualHost>

The server displays the correct page when accessing http://localhost:86/ but if I try to access it through the proxy (http://localhost:85/), it gives the following 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

Well, the GET line shouldn't have any : char in it. Why does it give this error? Does the proxy send another GET, so the first one is also added and it is considered a common header?

Can I do something to view the HTTP headers mod_proxy send to the target server?
Is there something I can do to solve this issue and make it not give errors?

Here are the HTTP headers sent and received by the browser:

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: localhost:85

Connection: Keep-Alive



HTTP/1.1 400 Bad Request

Date: Sun, 14 Jan 2007 16:05:05 GMT

Server: Apache/2.2.3 (Win32) PHP/5.2.0 mod_perl/2.0.3 Perl/v5.8.8

Content-Length: 306

Content-Type: text/html; charset=iso-8859-1

Connection: close


Thank you.

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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux