I wanted to have more than 1 cgi app in /cgi-bin/
In another thread someone said to use /cgi-bin/app1/app1.cgi and /cgi-bin/app2/app2.cgi (at first I missed the appX subdirectory)
After some tests and building webtest1.cgi and webtest2.cgi, I see both are the same perl script looking for config.cfg to find the name of the app and other settings. If I install webtest1.cgi in /cgi-bin/ then webtest2.cgi, when I try to go to /cgi-bin/webtest1.cgi then webtest2 is executed (because config.cfg is pointing to appname webtest2)
Solution: rename config.cfg to appname.cfg and edit appname.cgi changing the line:
return $dir . "/config.cfg";
to
return $dir . "/appname.cfg";
Running fine so far:
/cgi-bin/webtest1.cgi
/cgi-bin/webtest2.cgi
Edit: found this <https://xojo.com/issue/28355>
Edit2: could it be possible to create a script that run as Build Step to move config.cfg to appname.cfg and change appname.cgi line above? I’ll search for more information.