Hi,
I'm upgrading a web server from RedHat 7.2 + Apache 1.3
to RedHat 9 + Apache 2.0.
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>
The rewrite log seems OK:
(3) applying pattern '^/exec(.*)' to uri '/exec/prog'
(2) rewrite /exec/prog -> /var/www/html/progs/prog
(2) remember /var/www/html/progs/prog to have MIME-type 'application/x-httpd-cgi'
(2) local path result: /var/www/html/progs/prog
(1) go-ahead with /var/www/html/progs/prog [OK]
I must be missing something...
Thank you for your advices
Georges