You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Steve Brownlee <st...@printellect.com> on 2006/07/18 16:18:29 UTC

[users@httpd] Proxy to IIS problems

I've searched for days for answers to this problem and tried every
offered solution I found on blogs, mailing lists and forums, but still
having problems.  I was hoping a direct request might turn up better
answers from smarter minds.

I have a Win2k3 Server setup with JBoss, Apache and IIS.  I'm attempting
to get Apache to act as a proxy to IIS.  I've made some headway, but in
the end, I still end up with a 400 response from Apache.  Here's what
I've done to date.

1.  Disabled socket pooling on IIS and used httpcfg to tell it to listen
only to 192.168.1.204 and 127.0.0.1
	http://www.orbwave.com/images/iis/httpcfg_setup.jpg

2.  Added a virtual host to Apache to forward requests with the header
"www.fusioncube.net" to 192.168.1.204
	http://www.orbwave.com/images/iis/apache_setup.jpg

3.  Configured my web site to accept requests only to 192.168.1.204,
port 80, with header "www.fusioncube.net"
	http://www.orbwave.com/images/iis/iis_setup.jpg


Now, with the fusioncube.net web site stopped, I get a "502 Bad Gateway"
response from Apache - like I would expect.  However, once I start the
IIS website to accept the request, I get the "400 Bad Request" response.
	208.40.145.252 - - [18/Jul/2006:10:09:52 -0400] "GET / HTTP/1.1"
400 39 

The steps I followed is the culmination of all the information I could
find on the Internet.  If I'm missing something critical, or have left a
step out, or need to do something additional, please offer any advise
you can as I totally bamboozled at this point.

Thanks in advance,
Steve

Re: [users@httpd] Proxy to IIS problems

Posted by Joshua Slive <jo...@slive.ca>.
On 7/18/06, Steve Brownlee <st...@printellect.com> wrote:

> Now, with the fusioncube.net web site stopped, I get a "502 Bad Gateway"
> response from Apache - like I would expect.  However, once I start the IIS
> website to accept the request, I get the "400 Bad Request" response.
>
>         208.40.145.252 - - [18/Jul/2006:10:09:52 -0400] "GET / HTTP/1.1" 400
> 39
>
> The steps I followed is the culmination of all the information I could find
> on the Internet.  If I'm missing something critical, or have left a step
> out, or need to do something additional, please offer any advise you can as
> I totally bamboozled at this point.

You need to put a network sniffer on the line and see what is actually
being sent back and forth.  For example, this might be a case where
the ProxyBadHeader directive is needed.

Joshua.

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