Mailing List Archive

Apache Reverse Proxy problem
Hi,

I'm using apache with proxypass directive and proxypassreverse directive to
publish my backend servers to Internet.
For static pages(.html,etc) it works fine but when i trie to server dynamic
pages(.pl,.cgi) from my backend servers doesn't work.
My server configuration is something like this:
...
<virtualhost *>
Servername www.host1.com
Proxypass / http://10.1.1.10
Proxypassreverse / http://10.1.1.10
</virtualhost>
<virtualhost *>
Servername www.host2.com
Proxypass / http://10.1.1.11
Proxypassreverse / http://10.1.1.11
</virtualhost>

Can someone help me ???

Nuno Cansado

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
> From: Nuno Cansado [mailto:ncansado@inga.min-agricultura.pt]

>
> I'm using apache with proxypass directive and proxypassreverse
> directive to
> publish my backend servers to Internet.
> For static pages(.html,etc) it works fine but when i trie to
> server dynamic
> pages(.pl,.cgi) from my backend servers doesn't work.

"doesn't work" is not very descriptive or helpful. Please be much more
specific.

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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
>
> I'm using apache with proxypass directive and proxypassreverse
> directive to publish my backend servers to Internet.
> For static pages(.html,etc) it works fine but when i trie to
> server dynamic
> pages(.pl,.cgi) from my backend servers doesn't work.

"doesn't work" is not very descriptive or helpful. Please be much more
specific.

Joshua.
Ok I'try to explain better.

I Have a Reverse proxy which is serving the backend server on my intranet.
Accessing directely to Web Server I can see and execute all.
Accessing trought Reverse Proxy t I can see all the avaible pages(.html),
but when I try to execute some script (.pl,.cgi) the browser answers "can
not execute from were",i.e., all scripts don't work atall.

Nuno Cansado






---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
> From: Nuno Cansado [mailto:ncansado@inga.min-agricultura.pt]

> > I'm using apache with proxypass directive and proxypassreverse
> > directive to publish my backend servers to Internet.
> > For static pages(.html,etc) it works fine but when i trie to
> > server dynamic
> > pages(.pl,.cgi) from my backend servers doesn't work.
>
> "doesn't work" is not very descriptive or helpful. Please be much more
> specific.
>
> Joshua.
> Ok I'try to explain better.
>
> I Have a Reverse proxy which is serving the backend server on my intranet.
> Accessing directely to Web Server I can see and execute all.
> Accessing trought Reverse Proxy t I can see all the avaible pages(.html),
> but when I try to execute some script (.pl,.cgi) the browser answers "can
> not execute from were",i.e., all scripts don't work atall.

Hmmm, well, that is a little improved. Can you give the EXACT error message
you see in the browser? (The one you quote doesn't make grammatical sense,
let alone technical.) Can you look in the logs on both the internal and
external machine to see what they have for the request? Can you make sure
that if you request directly from the internal server that things work
correctly?

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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
> > I'm using apache with proxypass directive and proxypassreverse
> > directive to publish my backend servers to Internet. For static
> > pages(.html,etc) it works fine but when i trie to server dynamic
> > pages(.pl,.cgi) from my backend servers doesn't work.
>
> "doesn't work" is not very descriptive or helpful. Please be much
> more specific.
>
> Joshua.
> Ok I'try to explain better.
>
> I Have a Reverse proxy which is serving the backend server on my
> intranet. Accessing directely to Web Server I can see and execute all.
> Accessing trought Reverse Proxy t I can see all the avaible
> pages(.html), but when I try to execute some script (.pl,.cgi) the
> browser answers "can not execute from were",i.e., all scripts don't
> work atall.

Hmmm, well, that is a little improved. Can you give the EXACT error message
you see in the browser? (The one you quote doesn't make grammatical sense,
let alone technical.) Can you look in the logs on both the internal and
external machine to see what they have for the request? Can you make sure
that if you request directly from the internal server that things work
correctly?

Joshua.

Regarding your 1st question:
That's message I receive.

2nd question:
From internal server I don't have loggers.
From external server this what get:
[Fri Feb 08 16:50:13 2002] [debug] proxy_http.c(851): proxy: header only
[Fri Feb 08 16:50:15 2002] [debug] proxy_http.c(105): proxy: HTTP:
canonicalising URL //10.1.1.51//cgi-bin/form_pg.pl
[Fri Feb 08 16:50:15 2002] [debug] mod_proxy.c(454): Trying to run
scheme_handler
[Fri Feb 08 16:50:15 2002] [debug] proxy_http.c(934): proxy: HTTP: serving
URL http://10.1.1.51//cgi-bin/form_pg.pl
[Fri Feb 08 16:50:15 2002] [debug] proxy_http.c(216): proxy: HTTP connecting
http://10.1.1.51//cgi-bin/form_pg.pl to 10.1.1.51:80
[Fri Feb 08 16:50:15 2002] [debug] proxy_http.c(297): proxy: keepalive
address match (keep original socket)
[Fri Feb 08 16:50:15 2002] [debug] proxy_http.c(851): proxy: header only
[Fri Feb 08 16:50:16 2002] [debug] proxy_http.c(809): proxy: start body send
[Fri Feb 08 16:50:16 2002] [debug] proxy_http.c(848): proxy: end body send


3rd question:
Accessing directly to internal server it works OK, and this my help,
this internal server it was a external server in the paste, so , I'm almost
100% sure the problem it's from the configuration of apache.

Regards,

Nuno Cansado

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
> From: Nuno Cansado [mailto:ncansado@inga.min-agricultura.pt]

> > > I'm using apache with proxypass directive and proxypassreverse
> > > directive to publish my backend servers to Internet. For static
> > > pages(.html,etc) it works fine but when i trie to server dynamic
> > > pages(.pl,.cgi) from my backend servers doesn't work.
> >
> > "doesn't work" is not very descriptive or helpful. Please be much
> > more specific.
> >
> > Joshua.
> > Ok I'try to explain better.
> >
> > I Have a Reverse proxy which is serving the backend server on my
> > intranet. Accessing directely to Web Server I can see and execute all.
> > Accessing trought Reverse Proxy t I can see all the avaible
> > pages(.html), but when I try to execute some script (.pl,.cgi) the
> > browser answers "can not execute from were",i.e., all scripts don't
> > work atall.
>
> Hmmm, well, that is a little improved. Can you give the EXACT
> error message
> you see in the browser? (The one you quote doesn't make
> grammatical sense,
> let alone technical.) Can you look in the logs on both the internal and
> external machine to see what they have for the request? Can you make sure
> that if you request directly from the internal server that things work
> correctly?
>
> Joshua.
>
> Regarding your 1st question:
> That's message I receive.

The message is "can not execute from where"?!?! That makes no sense, and
doesn't resemble any message I've ever seen a browser or apache. Please
look again.


>
> 2nd question:
> From internal server I don't have loggers.

Not a good sign. You can't debug problems unless you have decent logs.

> From external server this what get:

I don't see anything wrong there.

>
> 3rd question:
> Accessing directly to internal server it works OK, and this my help,
> this internal server it was a external server in the paste, so ,
> I'm almost
> 100% sure the problem it's from the configuration of apache.

Which apache? Are you running apache only on the proxy or on both servers?

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
For additional commands, e-mail: users-help@httpd.apache.org
RE: Apache Reverse Proxy problem [ In reply to ]
> > > I'm using apache with proxypass directive and proxypassreverse
> > > directive to publish my backend servers to Internet. For static
> > > pages(.html,etc) it works fine but when i trie to server dynamic
> > > pages(.pl,.cgi) from my backend servers doesn't work.
> >
> > "doesn't work" is not very descriptive or helpful. Please be much
> > more specific.
> >
> > Joshua.
> > Ok I'try to explain better.
> >
> > I Have a Reverse proxy which is serving the backend server on my
> > intranet. Accessing directely to Web Server I can see and execute
> > all. Accessing trought Reverse Proxy t I can see all the avaible
> > pages(.html), but when I try to execute some script (.pl,.cgi) the
> > browser answers "can not execute from were",i.e., all scripts don't
> > work atall.
>
> Hmmm, well, that is a little improved. Can you give the EXACT error
> message you see in the browser? (The one you quote doesn't make
> grammatical sense,
> let alone technical.) Can you look in the logs on both the internal and
> external machine to see what they have for the request? Can you make sure
> that if you request directly from the internal server that things work
> correctly?
>
> Joshua.
>
> Regarding your 1st question:
> That's message I receive.

The message is "can not execute from where"?!?! That makes no sense, and
doesn't resemble any message I've ever seen a browser or apache. Please
look again.


>
> 2nd question:
> From internal server I don't have loggers.

Not a good sign. You can't debug problems unless you have decent logs.

> From external server this what get:

I don't see anything wrong there.

>
> 3rd question:
> Accessing directly to internal server it works OK, and this my help,

> this internal server it was a external server in the paste, so , I'm
> almost 100% sure the problem it's from the configuration of apache.

Which apache? Are you running apache only on the proxy or on both servers?

Joshua.



Only on reverse proxy, the backend server is microsoft.

Nuno Cansado

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