httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Upgrade Apache 1.3 -> 2.0: Problem with CGI scripts
Date Sun, 28 Sep 2003 15:46:54 GMT

On Sun, 28 Sep 2003, Georges Luxman wrote:
> I'm upgrading a web server from RedHat 7.2 + Apache 1.3
> to RedHat 9 + Apache 2.0.

Exactly what version?  The 2.0.40 that Redhat has been distributing has
some bugs in this area.

> I have a bunch of CGI scripts located in a directory
> and, for some reasons, must use RewriteRule.
> The solution suggestion in the FAQ
>   http://httpd.apache.org/docs/misc/FAQ.html#CGIoutsideScriptAlias
> worked perfectly under Apache 1.3.
>
> Under Apache 2.0, the scripts are NOT executed (the source code is sent
> to the client).
>
> Sample config:
> RewriteRule ^/exec(.*) /var/www/html/progs$1 [e=HTTP_CGI_AUTHORIZATION:%1,T=application/x-httpd-cgi,l]
>
> <Directory /var/www/html/progs>
> Options +ExecCGI
> </Directory>

I don't see why you are using mod_rewrite in this case.  Why not simply
use
ScriptAlias /exec /var/www/html/progs

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


Mime
View raw message