Index: [Article Count Order] [Thread]

Date:  Fri, 17 Mar 2006 07:23:53 -0600
From:  "William J.A. Brillinger" <billy (at mark) pdcweb.net>
Subject:  [coba-e:04296] Re: cgi problem under ssl
To:  coba-e (at mark) bluequartz.org
Message-Id:  <6.2.5.6.0.20060317072149.01cc5ff0 (at mark) pdcweb.net>
In-Reply-To:  <BAY102-F11885ACA8B189E7613316082E40 (at mark) phx.gbl>
References:  <6.2.5.6.0.20060316190044.01cb6c98 (at mark) pdcweb.net> <BAY102-F11885ACA8B189E7613316082E40 (at mark) phx.gbl>
X-Mail-Count: 04296

At 11:53 PM 16/03/2006, you wrote:
>>At 05:45 PM 16/03/2006, you wrote:
>>>I'm running into a problem that I know has come up before but I 
>>>can't seem to find if there is a resolution.
>>>
>>>I am trying to run simple cgi scripts on a BQ server using the 
>>>Nuonce CentOS distribution.  The scripts work fine under stand 
>>>http, but they don't work under SSL (https).  Either the script 
>>>just prints out on the page or my browser wants to download the file.
>>>
>>>I tried searching the archive, but only found others with the 
>>>problem.  Is there a solution to this?
>
>>From: "William J.A. Brillinger" <billy (at mark) pdcweb.net>
>>Here is the solution that was presented:
>>- Bill
>>
>>>Hi,
>>>
>>>I fixed this issue.
>>>The cgi doesn't work with SSI via https on all platform.
>>>I already commit.
>>>Please use this patch before to release new package.
>>>
>>>This pache is for /etc/httpd/conf.d/ssl_perl.conf
>>>--- ssl_perl.conf.orig  2005-11-11 11:53:15.000000000 +0900
>>>+++ ssl_perl.conf       2005-11-15 03:15:16.000000000 +0900
>>>@@ -61,7 +61,7 @@
>>>             $VirtualHost{"$ip:443"}{'SSLCertificateKeyFile'} = 
>>> "$vsite->{basedir}/certs/key";
>>>             foreach my $conf (@ssl_conf) {
>>>                 if ($conf =~ /^([^ ]+) (.+)/ && $conf !~ /^#/) {
>>>-                   $VirtualHost{"$ip:443"}{$1} = $2;
>>>+                   $VirtualHost{"$ip:443"}{"$1 $2"} = "";
>>>                 }
>>>             }
>>>         }
>>>
>>>Use this patch and restart https, then you can access .cgi and .pl 
>>>via https.
>>>
>>>Regards,
>>>shibuya (at mark) alpha.or.jp
>
>Bill, Thanks for your quick response.  Maybe I'm not clear on how 
>exactly to apply this "patch."  I assumed it had to be added 
>somewhere within ssl_perl.conf.  But it wasn't easy to see exactly 
>where.  I tried it in a few places, and also tried replacing some 
>similar lines with it.  Nothing worked.  SSL failed completely when 
>trying.  Can you let me know specifically how to apply it?  Sorry if 
>this is a dumb question.

I actually never tried the patch. You can use this workaround also:

Open the /etc/httpd/conf/vhosts/siteXX.include and add:

AddHandler cgi-wrapper .cgi

Then
/etc/rc.d/init.d/httpd restart


Also, renaming .cgi's to .pl also works. (that's the approach I took)
- Bill


---------------------------------
William J.A. Brillinger
Precision Design Co.

E-Mail:   mailto:billy (at mark) pdcweb.net
Web site: http://www.pdcweb.net
Phone:    (204) 324-1889

	

4296_2.html (attatchment)