James Cook wrote
I'm new to Abyss, moving form OSX Server.
My server has had all cgi scripts located in /Library/WebServer/CGI-Executables.
With Abyss I've only been able to avoid 404 errors on the cgi when I locate the scripts in a cgi-bin directory within the root folder of every site.
Is there a way to have all cgi scripts in one location, and how would I enter it in the Scripting Parameters?
The idea is to use aliases to "share" the same physical location on the hard drive among several sites.
For each of your hosts which will use the CGI scripts in that folder, do the following:
Now we'll make the .cgi files inside /cgi-bin executable or handled by Perl in Abyss Web Server:
If your .cgi is a Perl script, you could declare Perl support as explained in
https://aprelium.com/abyssws/perl.html#mac .
Or:
If all .cgi files in /cgi-bin are correctly set as executables using the Finder (file properties) or the following command:
chmod +x *.cgi
and if all of them have a shebang line as their first line which looks like:
#!/usr/bin/perl
then the files are executable by the operating system and we'll only need to let Abyss Web Server know that the *.cgi files in /cgi-bin are executable CGI scripts. For that, open "Scripting Parameters" and add in the "Script Paths" table the following path:
/cgi-bin/*.cgi
Or even a more specific value like:
/cgi-bin/myscript.cgi
Press "OK" and restart the host. This should be enough for the host to act as expected.[/list]