πŸ’Ύ Archived View for gem.benscraft.info β€Ί mailing-list β€Ί messages β€Ί 197 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-12-03)

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

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

present

- Frank JΓΌdes <Frank.Juedes at linux4specialists.com>

@ Mon, 12 Apr 2021 22:59 -0400

────────────────────────────────────────────────────────────────────────────────

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

PWD=/opt/jetforce

REMOTE_ADDR=184.14.157.147

REMOTE_HOST=184.14.157.147

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

PWD=/home/gemini/molly-brown

REMOTE_ADDR=10.10.10.1

REQUEST_METHOD=

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

════════════════════════════════════════════════════════════════════════════════

Attachments

Frank_Juedes.vcf

Replies

Reply from Stephane Bortzmeyer <stephane at sources.org>

Reply from Matthew Ernisse <matt at going-flying.com>

Reply from Ben Goldberg <ben at benaaron.dev>