Annie,

You do not specify what version of Apache you are using.

My understanding is that there is a content server somewhere that also hosts 
cgi-scripts, and you have put a reverse proxy in front of that server. You do 
NOT want CGI scripts to be executed on the reverse proxy.

Have you tested against the configuration you outline below and actually found 
that paths prefixed with /cgi-bin are actually interpreted as CGI-scripts by 
the reverse proxy?

Tests I made with Apache 2.0.54 show that it works just fine. The CGI script is 
NOT executed on the reverse proxy. A quick look at the code of mod_proxy and 
mod_cgi seems to confirm this since the mod_proxy handler registers all its 
hooks before mod_cgi (except post_config).

I suggest you test your configuration below. If you actually do observe that 
the CGI scripts are executed on the reverse proxy, please report back and we'll 
look into it again.

Cordialement,
-ascs 

-----Original Message-----
From: Annie Dumont [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 25, 2006 7:17 AM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] How to execute cgi on a proxied host ?

Hi everybody,

One of our scientist has develop a website with cgi-script, on host with a 
private adress.
He needs to be readable throught the internet next month.
Is it possible, throught a virtualHost and proxying to execute the cgi scripts 
hosted on his machine ?

On our apache server we have written in the vhost.conf :
(assuming for the example that our apache serveur ip adress is
123.12.12.12 our distant host private ip adress 10.10.10.10 and the name it 
becomes to bee seen through the internet
distant.machine.univ-reunion.fr) :

<VirtualHost 123.12.12.12:80>
    Servername distant.machine.univ-reunion.fr
    ProxyPass             /        http://10.10.10.10
    ProxypassReverse /        http://10.10.10.10
</VirtualHost>

How do i tell apache that cgi scripts i want to execute are not those on the 
apache server but those on the 10.10.10.10 ? Is it just possible ?

regards, annie

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to