httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Annie Dumont <>
Subject Re: [users@httpd] How to execute cgi on a proxied host ?
Date Wed, 25 Jan 2006 10:53:31 GMT
Hi Axel-Stéphane,

Sorry, i forget to give the apache version : 1.3.31 :-(
I don't know if this answer your question, but when i put in a browser (host where the cgi-script i 
want to execute are) it works.
When i put (so the 
same machine behind a reverse proxy), i get :


You don't have permission to access /cgi-bin/PBE/list_superfamily.cgi on 
this server.
Apache/1.3.31 Server at [distant.machine] Port 80

Am i false if i think that reverse-proxy does not know where to find the 
cgi-script on the machine, or is it something else ?

i try to put a Directory directive in the virtual host :
<Directory /usr/lib/cgi-bin/>
    AllowOverride none
    Options ExecCGI
    Order allow,deny
    Allow from all

where /usr/lib/cgi-bin/ is the absolute path to cgi folder on
It doesn't work either,and perhaps was it a nut thing to do.

So if you have an idea ...
Thanks for help.
cordialement. annie

Axel-Stéphane SMORGRAV a écrit :

> 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.
>-----Original Message-----
>From: Annie Dumont [] 
>Sent: Wednesday, January 25, 2006 7:17 AM
>Subject: [users@httpd] 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
> our distant host private ip adress and the name it becomes to
bee seen through the internet
> :
>    Servername
>    ProxyPass             /
>    ProxypassReverse /
>How do i tell apache that cgi scripts i want to execute are not those on the apache server
but those on the ? Is it just possible ?
>regards, annie
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

View raw message