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*=/env
PWD=/opt/jetforce
*QUERY_STRING*=
REMOTE_ADDR=184.14.157.147
REMOTE_HOST=184.14.157.147
*SCRIPT_NAME*=/cgi-bin/man
SERVER_NAME=h2903872.stratoserver.net
SERVER_PORT=1965
SERVER_PROTOCOL=GEMINI
SERVER_SOFTWARE=jetforce/0.8.1
SHLVL=1
TLS_CIPHER=TLS_AES_256_GCM_SHA384
TLS_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*=man
REMOTE_ADDR=10.10.10.1
REQUEST_METHOD=
*SCRIPT_PATH*=/home/gemini/gemini/cgi-bin/man
SERVER_NAME=ffappsdev.solarsystem.space
SERVER_PORT=1965
SERVER_PROTOCOL=GEMINI
SERVER_SOFTWARE=MOLLY_BROWN
SHLVL=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.vcf
Type: text/x-vcard
Size: 253 bytes
Desc: not available
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210412/6985f44e/attachment.vcf>


More information about the Gemini mailing list