Forum OpenACS Q&A: Response to aolserver + nscgi

Collapse
Posted by Henry Minsky on
Here is what's in my aolserver config file. It seems to run cgi files OK from the /cgi-bin directory specified. I have tried Perl and Shell scripts, with the extensions ".pl" and ".doit" Make sure your Perl script outputs at least some kind of Content-type header, or else certain web browsers won't display the content. AOLserver will add in content-length and a couple of other headers automatically.


ns_section "ns/server/${server}/modules" 
        ns_param   nssock          ${bindir}/nssock.so 
        ns_param   nslog            ${bindir}/nslog.so 
        ns_param   nscgi           ${bindir}/nscgi.so 

ns_section "ns/server/${server}/module/nscgi" 
       ns_param   map "GET  /cgi-bin /web/$server/cgi-bin"
       ns_param   map "POST /cgi-bin /web/$server/cgi-bin" 
       ns_param   Interps CGIinterps

ns_section "ns/interps/CGIinterps" 
       ns_param .pl "/usr/bin/perl"
       ns_param .doit "/bin/bash"