Forum OpenACS Development: Re: Using Perl CGI

Collapse
2: Re: Using Perl CGI (response to 1)
Posted by Dave Bauer on
You map statements have to have the trailing slash on the URL like this

ns_param Map "GET /cgi/ /usr/local/cgi"
ns_param Map "POST /cgi/ /usr/local/cgi"

Make sure you are loading nscgi in

ns_section "ns/server/${servername}/modules"
ns_param nscgi ${bindir}/nscgi${ext}

as well.

Collapse
3: Re: Re: Using Perl CGI (response to 2)
Posted by Kika B on
I am also trying to solve what looks like the same as Pietro's problem. Trying to add a Perl script to the system:
- nscgi enabled as you mention
ns_param nscgi ${bindir}/nscgi${ext}
- GET and POST pointing to the script's location
- Perl extension mapped correctly

Still I get "Not Found". I wonder whether I need to map a different method (beyond GET and POST) when the CGI script is called directly through the URL and is not a result of a form, or specify the location through a different parameter?

Thanks,

Kika