Forum Moderators: phranque

Message Too Old, No Replies

reverse proxy to haproxy don't work

         

bart72

1:53 pm on Apr 2, 2015 (gmt 0)

10+ Year Member



hi,
to continue my work I need to resolve a problem!
I have my apache configured as reverse-proxy (using this directives in my virtual host:
ProxyHTMLLogVerbose On
ProxyRequests Off
ProxyHTMLEnable On
ProxyPreserveHost On
ProxyPass / http://intranet.domain.intra:80/ retry=0 timeout=5
ProxyPassReverse / http://intranet.domain.intra:80/
ProxyPassReverseCookieDomain intranet.domain.intra public.domain.it
ProxyHTMLURLMap http://intranet.domain.intra:80/ /

)
and all request from internet is proxed to internal HAproxy that work as load balancer. HAproxy forwards the requests received from the reverse proxy to the backend server by domain name.
The backend server is a IIS 7.5.
In error.log of apache I read this:
[debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //intranet.domain.intra:80/path
[debug] proxy_util.c(1521): [client 10.10.7.13] proxy: http: found worker http://intranet.domain.intra/ for http://intranet.domain.intra/path
[debug] mod_proxy.c(1020): Running scheme http handler (attempt 0)
[debug] mod_proxy_http.c(1967): proxy: HTTP: serving URL http://intranet.domain.intra/path
[debug] proxy_util.c(1964): proxy: HTTP: retrying the worker for (intranet.domain.intra)
[debug] proxy_util.c(1970): proxy: HTTP: worker for (intranet.domain.intra) has been marked for retry
[debug] proxy_util.c(2026): proxy: HTTP: has acquired connection for (intranet.domain.intra)
[debug] proxy_util.c(2082): proxy: connecting http://intranet.domain.intra/path to intranet.domain.intra:80
[debug] proxy_util.c(2209): proxy: connected /path to intranet.domain.intra:80
[debug] proxy_util.c(2460): proxy: HTTP: fam 2 socket created to connect to intranet.domain.intra
[error] (111)Connection refused: proxy: HTTP: attempt to connect to private_ip_address:80 (intranet.domain.intra) failed
[error] ap_proxy_connect_backend disabling worker for (intranet.domain.intra)
[debug] proxy_util.c(2044): proxy: HTTP: has released connection for (intranet.domain.intra)


Where is the problem?
Thanks, Marco

[edited by: phranque at 6:45 pm (utc) on Apr 2, 2015]
[edit reason] unlinked URLs [/edit]