You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Arnold <ca...@electrichendrix.com> on 2013/02/08 22:58:27 UTC

[users@httpd] Proxy Config Problem

I am trying to proxy a connection from ifolder client to our ifolder server. Here are the proxypass statements:

	ProxyPass /ifolder https://192.168.123.4/ifolder
	ProxyPassReverse /ifolder https://192.168.123.4/ifolder

With just those statements, i get these errors in the apache proxy server error.log:

[Thu Feb 07 09:23:24 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
[Thu Feb 07 09:25:38 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
[Thu Feb 07 09:43:40 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
[Thu Feb 07 09:44:13 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
        
So, i enter these proxypass statements below the above statements:

        ProxyPass /simias10/ https://192.168.123.4/simias10/
	ProxyPassReverse /simias10/ https://192.168.123.4/simias10/

This gives me this in the apache proxy access log (nothing in the error log):

[08/Feb/2013:04:12:51 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 404
[08/Feb/2013:04:12:55 -0500] "POST /simias10/Login.ashx HTTP/1.1" 401 -
[08/Feb/2013:04:12:55 -0500] "POST /simias10/Login.ashx HTTP/1.1" 200 -
[08/Feb/2013:04:12:56 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 950
[08/Feb/2013:04:13:12 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 404
[08/Feb/2013:04:13:15 -0500] "POST /simias10/Login.ashx HTTP/1.1" 200 -
[08/Feb/2013:04:13:15 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 950

notice the 200's and then 404's.

I have tried both,

        ProxyPass /simias10/ https://192.168.123.4/simias10/
	ProxyPassReverse /simias10/ https://192.168.123.4/simias10/
and
        ProxyPass /simias10 https://192.168.123.4/simias10
	ProxyPassReverse /simias10 https://192.168.123.4/simias10
notice the trailing "/" in both statements.

Here is the network setup for that which is in question:
---->internet-->sonicwall router with 1 public ip and doing nat/pat-->apache proxy server sends 80/443 traffic to-->ifolder/mail server.

Is there something extra i need to include in the proxypass statements to make this work?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Proxy Config Problem

Posted by Chris Arnold <ca...@electrichendrix.com>.
This is from a wireshark packet capture: 
41 4.087378 8.25.230.32 192.168.123.3 TCP 49284 > https [RST, ACK] Seq=1456 Ack=1051 Win=0 Len=0 

Does this look like apache proxy is sending the RST and closing the connection? 

----- Original Message -----

From: "Chris Arnold" <ca...@electrichendrix.com> 
To: users@httpd.apache.org 
Sent: Saturday, February 9, 2013 11:21:45 PM 
Subject: Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem 

Could the issue be the client gets the apache proxy server cert and maybe the client is expecting the ifolder server cert? At the present time we use self-signed certs. 

Sent from my iPhone 

On Feb 9, 2013, at 7:36 PM, "Chris Arnold" wrote: 

> On Feb 9, 2013, at 6:33 PM, "Nick Kew" wrote: 
> 
> > Sorry, not familiar with ifolder. Have you googled 
> > whatever error it gives? 
> 
> Yes. It gives a generic/vague error (an error occurred). I also am seeking help on the ifolder forum. The reason I ask here is because when you bypass the apache proxy, the client works fine. 
> 
> > Is there some problem with 404-byte responses from 404 byte 
> 
> Oh ok. That 404 is byte not a http 404. 


Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Chris Arnold <ca...@electrichendrix.com>.
Could the issue be the client gets the apache proxy server cert and maybe the client is expecting the ifolder server cert? At the present time we use self-signed certs. 

Sent from my iPhone

On Feb 9, 2013, at 7:36 PM, "Chris Arnold" <ca...@electrichendrix.com> wrote:

> On Feb 9, 2013, at 6:33 PM, "Nick Kew" wrote:
> 
> > Sorry, not familiar with ifolder. Have you googled
> > whatever error it gives?
> 
> Yes. It gives a generic/vague error (an error occurred). I also am seeking help on the ifolder forum. The reason I ask here is because when you bypass the apache proxy, the client works fine.
> 
> > Is there some problem with 404-byte responses from 404 byte 
> 
> Oh ok. That 404 is byte not a http 404.

Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Chris Arnold <ca...@electrichendrix.com>.
On Feb 9, 2013, at 6:33 PM, "Nick Kew" <ni...@webthing.com> wrote:

> Sorry, not familiar with ifolder.  Have you googled
> whatever error it gives?

Yes. It gives a generic/vague error (an error occurred). I also am seeking help on the ifolder forum. The reason I ask here is because when you bypass the apache proxy, the client works fine.

> Is there some problem with 404-byte responses from 404 byte 

Oh ok. That 404 is byte not a http 404.

Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Nick Kew <ni...@webthing.com>.
On Sat, 9 Feb 2013 17:35:22 -0500 (EST)
Chris Arnold <ca...@electrichendrix.com> wrote:

> Sorry for not being clear, the problem is when surfing to https://domain.net/ifolder, this works fine but when using that same address in the ifolder client, this produces an error.

Sorry, not familiar with ifolder.  Have you googled
whatever error it gives?

> About the log entries, the 404's are fine?

Is there some problem with 404-byte responses from your backend?

-- 
Nick Kew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Chris Arnold <ca...@electrichendrix.com>.
On Feb 9, 2013, at 5:23 PM, "Nick Kew" <ni...@webthing.com> wrote:

> 
> On 9 Feb 2013, at 20:28, Chris Arnold wrote:
> 
>> I am wondering if I need some kind of wildcard/regex to make this work. Maybe I need to useProxyPreserveHost Directive or one of the other options.
> 
> You haven't told us a problem.  Your log entries look fine to me.

Sorry for not being clear, the problem is when surfing to https://domain.net/ifolder, this works fine but when using that same address in the ifolder client, this produces an error.

About the log entries, the 404's are fine?

Re: [users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Nick Kew <ni...@webthing.com>.
On 9 Feb 2013, at 20:28, Chris Arnold wrote:

> I am wondering if I need some kind of wildcard/regex to make this work. Maybe I need to useProxyPreserveHost Directive or one of the other options.

You haven't told us a problem.  Your log entries look fine to me.

-- 
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] RePost: [users@httpd] Proxy Config Problem

Posted by Chris Arnold <ca...@electrichendrix.com>.
I have been trying to understand the mod_proxy module from http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

I am wondering if I need some kind of wildcard/regex to make this work. Maybe I need to useProxyPreserveHost Directive or one of the other options.

> I am trying to proxy a connection from ifolder client to our ifolder server. Here are the proxypass statements:
> 
>    ProxyPass /ifolder https://192.168.123.4/ifolder
>    ProxyPassReverse /ifolder https://192.168.123.4/ifolder
> 
> With just those statements, i get these errors in the apache proxy server error.log:
> 
> [Thu Feb 07 09:23:24 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
> [Thu Feb 07 09:25:38 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
> [Thu Feb 07 09:43:40 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
> [Thu Feb 07 09:44:13 2013] [error] [client xx.xx.xx.xx] File does not exist: /srv/www/htdocs/simias10
> 
> So, i enter these proxypass statements below the above statements:
> 
>        ProxyPass /simias10/ https://192.168.123.4/simias10/
>    ProxyPassReverse /simias10/ https://192.168.123.4/simias10/
> 
> This gives me this in the apache proxy access log (nothing in the error log):
> 
> [08/Feb/2013:04:12:51 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 404
> [08/Feb/2013:04:12:55 -0500] "POST /simias10/Login.ashx HTTP/1.1" 401 -
> [08/Feb/2013:04:12:55 -0500] "POST /simias10/Login.ashx HTTP/1.1" 200 -
> [08/Feb/2013:04:12:56 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 950
> [08/Feb/2013:04:13:12 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 404
> [08/Feb/2013:04:13:15 -0500] "POST /simias10/Login.ashx HTTP/1.1" 200 -
> [08/Feb/2013:04:13:15 -0500] "POST /simias10/DomainService.asmx HTTP/1.1" 200 950
> 
> notice the 200's and then 404's.
> 
> I have tried both,
> 
>        ProxyPass /simias10/ https://192.168.123.4/simias10/
>    ProxyPassReverse /simias10/ https://192.168.123.4/simias10/
> and
>        ProxyPass /simias10 https://192.168.123.4/simias10
>    ProxyPassReverse /simias10 https://192.168.123.4/simias10
> notice the trailing "/" in both statements.
> 
> Here is the network setup for that which is in question:
> ---->internet-->sonicwall router with 1 public ip and doing nat/pat-->apache proxy server sends 80/443 traffic to-->ifolder/mail server.
> 
> Is there something extra i need to include in the proxypass statements to make this work?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>