>0 winter @ 2023/03/10 22:45
so i was trying to set up a cgi script i wrote, but it looks like the gemini server here (jetforce) either doesn't support cgi in user-dirs, or it wasn't configured to do that: i put a little shell script to test (yes it is also marked as executable) which is at gemini://envs.net/~winter/cgi-bin/env.sh and you can see that it just shows the contents of the file instead. does anyone know if it's possible to do cgi on here, and if so how? (i also tried on ~cafe but their server doesn't work properly with PATH_INFO (i.e. virtual subdirectories of the cgi script) which my script needs. obviously i would rather not make an account at yet another tilde just for this) if it's not possible i would like to propose that it becomes so
>1 anonymous @ 2025/07/11 15:03
[deleted]
>2 kyeh @ 2025/11/03 20:48
>>1 Hi guys, really late to this thread, but cgi do work! o.o (Sort of) The trick is that you have to put them in envs' global cgi-bin; depending on your usecase, this might nnot be ideal, but I think it works more or less fine! You'd want to make a new directory for yourself in the cgi-bin (be careful wiith the permissions you allow), and then you can link into it from your home directory! Some of the things that do or don't work in those scripts were sort of surprising to me, so you can take a look at what I have in cgi-bin/kyeh/