You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by System <sy...@eluminoustechnologies.com> on 2003/06/07 17:14:34 UTC

[users@httpd] mod_ssl + CGI

Hello All,

Redhat 7.3 / Apache 1.3.27/ mod_ssl.

I am trying to execute a Perl Script on a https domain. This script is a
simpel test script which works fine on a http domain.

Here is the httpd.conf Entry for the domain.

AddHandler cgi-script .cgi .sh .pl
<IfDefine SSL>
 <VirtualHost xx.xxx.xxx.126:443>
  DocumentRoot /drive2/www4/secure
  ServerName www.domain.com
  ServerAdmin admin@domain.com
  ScriptAlias /cgi-bin /drive2/www4/secure/cgi-bin
  ErrorLog /drive2/www4/logs/secure_error_log
  CustomLog /drive2/www4/logs/secure_access.log combined
  SSLEngine on
  SSLCertificateFile /usr/local/apache/conf/ssl.domain.com/server.crt
  SSLCertificateKeyFile /usr/local/apache/conf/ssl.domain.com/server.key
  <Directory /drive2/www4/secure>
   Options +Indexes
  </Directory>
  <Directory "/drive2/www4/secure/cgi-bin">
    SSLOptions +StdEnvVars
  </Directory>
 </VirtualHost>
</IfDefine>

I checked the secure_error_log.....

[Sat Jun  7 20:57:05 2003] [error] (2)No such file or directory: exec of
/drive2/www4/secure/cgi-bin/test.cgi failed
[Sat Jun  7 20:57:05 2003] [error] [client 61.11.23.232] Premature end of
script headers: /drive2/www4/secure/cgi-bin/test.cgi

What could be the reason ?


Any help would be Appreciated.

Regards,
Tina.

P.S : On the same domain I have SquirrelMail Working fine with SSL.



---------------------------------------------------------------------
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


Re: [users@httpd] mod_ssl + CGI

Posted by System <sy...@eluminoustechnologies.com>.
> Hello,
>
> System wrote:
>
> > I am trying to execute a Perl Script on a https domain. This script is a
> > simpel test script which works fine on a http domain.
>
> > I checked the secure_error_log.....
> >
> > [Sat Jun  7 20:57:05 2003] [error] (2)No such file or directory: exec of
> > /drive2/www4/secure/cgi-bin/test.cgi failed
> > [Sat Jun  7 20:57:05 2003] [error] [client 61.11.23.232] Premature end
of
> > script headers: /drive2/www4/secure/cgi-bin/test.cgi
>
> It seems that the Perl path cannot be located. Are you sure you have a
> correct Perl path? What about you execute the test.cgi from cgi-bin
> directory itself by typing ./test.cgi?
How Stupid of me :)
The Perl Path was wrong i corrected it and now its working. Thank you Bao

Regards.
Tina.




---------------------------------------------------------------------
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


Re: [users@httpd] mod_ssl + CGI

Posted by BAO RuiXian <ru...@pp.inet.fi>.
Hello,

System wrote:

> I am trying to execute a Perl Script on a https domain. This script is a
> simpel test script which works fine on a http domain.

> I checked the secure_error_log.....
> 
> [Sat Jun  7 20:57:05 2003] [error] (2)No such file or directory: exec of
> /drive2/www4/secure/cgi-bin/test.cgi failed
> [Sat Jun  7 20:57:05 2003] [error] [client 61.11.23.232] Premature end of
> script headers: /drive2/www4/secure/cgi-bin/test.cgi

It seems that the Perl path cannot be located. Are you sure you have a 
correct Perl path? What about you execute the test.cgi from cgi-bin 
directory itself by typing ./test.cgi?

Best

Bao

> What could be the reason ?
> 
> 
> Any help would be Appreciated.
> 
> Regards,
> Tina.
> 
> P.S : On the same domain I have SquirrelMail Working fine with SSL.





---------------------------------------------------------------------
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