💾 Archived View for rawtext.club › ~sloum › geminilist › 006327.gmi captured on 2021-12-05 at 23:47:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

JetForce vs. Molly Brown Server: CGI-variable SCRIPT_NAME is not present

Frank Jüdes Frank.Juedes at linux4specialists.com

Tue Apr 13 03:59:57 BST 2021

- - - - - - - - - - - - - - - - - - - 

Hi everybody,

i am not sure if the author of the Molly-Brown server is reading this list, i tried to sign up on tildegit.org, but they won't accept my e-mail address there. I have created a perl-package to make the development of CGI programs for the gemini-space somewhat easier for perl-programmers, especially the handling of multiple parameters can be handled fully transparent for the application.

But that mechanism is based on the SCRIPT_NAME cgi-variable!

I started on my soon-to-be production server with an installation of the /JetForce-server/ and a CGI-program will find this (example) environment there, the important variables for cgi-programs are marked in bold:

GATEWAY_INTERFACE=CGI/1.1*GEMINI_URL*=gemini://h2903872.stratoserver.net/cgi-bin/man/env*HOSTNAME*=h2903872.stratoserver.net*PATH_INFO*=/envPWD=/opt/jetforce*QUERY_STRING*=REMOTE_ADDR=184.14.157.147REMOTE_HOST=184.14.157.147*SCRIPT_NAME*=/cgi-bin/manSERVER_NAME=h2903872.stratoserver.netSERVER_PORT=1965SERVER_PROTOCOL=GEMINISERVER_SOFTWARE=jetforce/0.8.1SHLVL=1TLS_CIPHER=TLS_AES_256_GCM_SHA384TLS_VERSION=TLSv1.3

On my development-VM i wasn't able to install JetForce (only python 3.6 is available and 3.7 is required!) so i decided to go with another software, the Molly-Brown server, so i would also be able to test for compatibility issues. Compared to ththe environment above, Molly literally starves CGI programs:

GATEWAY_INTERFACE=CGI/1.1*PATH_INFO*=PWD=/home/gemini/molly-brown*QUERY_STRING*=manREMOTE_ADDR=10.10.10.1REQUEST_METHOD=*SCRIPT_PATH*=/home/gemini/gemini/cgi-bin/manSERVER_NAME=ffappsdev.solarsystem.spaceSERVER_PORT=1965SERVER_PROTOCOL=GEMINISERVER_SOFTWARE=MOLLY_BROWNSHLVL=1

The super-duper important variable /SCRIPT_NAME/ is missing. As a workaround, i am using the /SCRIPT_PATH/ but that works only as long as the the cgi-directory is named /cgi-bin/ which is sub-optimal, especially because Molly-Brown supports multiple cgi-directories!

Is the Molly-Brown server still actively developed or am i riding a dead horse here? - The last changes on tildegit.org are ~8 months old…

Thank you very much in advance for your help.

Best regards from Charleston (WV),      Frank/2

-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210412/6985f44e/attachment.htm>-------------- next part --------------A non-text attachment was scrubbed...Name: Frank_Juedes.vcfType: text/x-vcardSize: 253 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210412/6985f44e/attachment.vcf>