Executing CGI Scripts with Apache+SSL -


i'm having problems trying execute cgi script through apache. script identical openlayers proxy.cgi allows make ajax requests outside of one's domain. script runs smoothly , without errors using normal apache configuration (without ssl), but! when enable ssl, starts behave erratically.

let me show first apache configuration ssl:

namevirtualhost *:443 <virtualhost *:443>     servername 172.22.1.37     sslengine on     sslprotocol -sslv2     sslcertificatefile /etc/apache2/ca/apache-server.crt     sslcertificatekeyfile /etc/apache2/ca/apache-server.key     sslcertificatechainfile /etc/apache2/ca/proba.crt     sslcacertificatefile /etc/apache2/ca/proba.crt     addtype application/x-x509-ca-cert .crt     addtype application/x-pkcs7-crl    .crl     alias /mapviewer "/var/www/mapviewer/"     scriptalias /cgi-bin/ /usr/lib/cgi-bin/     addhandler cgi-script .cgi     documentroot /usr/lib/cgi-bin/     <directory "/usr/lib/cgi-bin">         allowoverride          options +execcgi -multiviews +symlinksifownermatch         order allow,deny         allow     </directory> </virtualhost> 

so, ssl loads correctly, since have tried other webapps , run smoothly in https, problem app uses proxy.cgi

weird thing when start apache, @ beginning work correctly without problem, after time (i'm not sure if it's dependent on time or number of request, although after testing i'd it's former) when javascript code calls proxy.cgi script, request hang there and, in end, aborted due "timeout".

do need enable other option execute cgi scripts through https? there i'm missing? can put proxy.cgi code don't think has since has proven work correctly, problem here ssl enabled, won't executed.

thanks reading!

first of all, joseph myers suggestions cause if did not provide solution, helped me toward it. said zombie processes made sense , after having deeper realized instead of loading mod_cgid on apache start up, loaded mod_cgi instead. difference quite noticeable, knowing (after having @ httpd documentation) mod_cgid

creates external daemon responsible forking child processes run cgi scripts

and seems it's default, instead of cgi. cannot remember myself changing that, hell, knows, works now!

tl;dr, don't use mod_cgi! use mod_cgid instead!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -