Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Upgrade Apache 1.3 -> 2.0: Problem with CGI scripts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  User permissions  
Author Message
luxman

External


Since: Sep 28, 2003
Posts: 2



(Msg. 1) Posted: Sun Sep 28, 2003 6:59 pm
Post subject: Upgrade Apache 1.3 -> 2.0: Problem with CGI scripts
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Upgrade Apache 1.3 -&gt; 2.0: Problem with CGI scripts 
Back to top
Login to vote
luxman

External


Since: Sep 28, 2003
Posts: 2



(Msg. 2) Posted: Sun Sep 28, 2003 11:26 pm
Post subject: Re: Upgrade Apache 1.3 -> 2.0: Problem with CGI scripts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This was caused by a bug in Apache 2.0.40 (shipped with RedHat 9),
and is now solved by using 2.0.47.

Georges

 >> Stay informed about: Upgrade Apache 1.3 -&gt; 2.0: Problem with CGI scripts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache proxypass/upgrade - I;m wanting to upgrade my apache server too the latest build of apache and add the proxy mod to do proxy pass i was wondering if anyone could shine a little light on this situation. I looked at the doc on apache.org but since it is a small upgrade i see...

Newbie: Debian upgrade 2.2 to 3.0 stops apache - Just upgraded from Debian 2.2 to 3.0, fortunately on a test machine, but now Apache won't start. Problem I presume is related to Tomcat. Error given is Syntax error on line 69 of /etc/apache/httpd.conf: Invalid command 'JkWorkersFile', perhaps..

Apache 2.0 caching dynamic scripts? - I'm writing some dynamic Ruby scripts that are run using the fastCGI module. I'm having a weird problem that I recall experiencing with PHP scripts as well. It only happens for me in Apache 2.0. It appears that Apache itself is caching the scripts....

Running Shell Scripts Under Apache? - Hi all, Is it possible to allow running shell scripts under let's say the /cgi-bin directory, just like allowing perl scripts (.pl or .cgi)? Thanks a lot! Ben

I got a problem with Apache & PHP. - First off, I'm trying to get PHP working with Apache. I added this line to my httpd.conf: AddType application/x-httpd-php .php and I have set index.php to the default index page. When I go to my test page (index.php) with a little <? print(Date(&quot...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]