Lighttpd and Perl

Andy Romens Romens.Andy@hotmail.com
Wed Oct 6 23:56:53 GMT 2021


Hi again,

Thanks for the pro tip. I am trying to register with the lighttpd forum, but the activation email has yet to make it to my inbox. Any tips?

Thanks,
-Andy

> On Sep 30, 2021, at 4:28 PM, gs-cygwin.com@gluelogic.com wrote:
> 
> On Thu, Sep 30, 2021 at 10:07:24AM +0000, Andy Romens via Cygwin wrote:
>> Good morning all,
>> 
>> I am running into a bit of what appears a noob issue with lighttpd.
>> 
>> Short and sweet version is I am transitioning from Apache to lighttpd.
>> 
>> Gotten pretty far, except now I am having issues with parsing.
>> 
>> Our website will run a command in a browser like ‘server/cgi-bin/myscript.pl?prod,eventhist’ in the web browser. With Apache, it will split everything after the ‘?’ As variables, and return a nicely formatted html result page.
>> 
>> However, after switching to lighttpd, it’s not passing those variables anymore. When I run the script in Cygwin, it works just fine.
>> 
>> I’ve been banging my head on this problem for a few days now, so any assistance would be greatly appreciated.
> 
> I'd suggest starting at https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.lighttpd.net%2F%23Documentation&data=04%7C01%7C%7C722d1ee7355143db178608d9845939b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637686341017068026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hSrAta1EEh35EgYUBixhVNG%2FWc8jbg94uM3mwrq2gX4%3D&reserved=0 and
> carefully reading through the link for "How to get help".  Then, you
> can post your improved questions in the lighttpd Support Forum,
> perhaps with more details about your script.
> 
> When running CGI scripts such as "myscript.pl", lighttpd creates a
> standard CGI environment [1], including environment variables such as
> QUERY_STRING, so the problem is likely in your Perl script, and likely
> a misunderstanding of standard CGI environment variables.
> 
> [1] The Common Gateway Interface (CGI) Version 1.1
>    https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc3875&data=04%7C01%7C%7C722d1ee7355143db178608d9845939b8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637686341017068026%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TBkSGPSbVgIgwjXq7oya4gAKG1ufmm%2F6%2FJgk4bCW3Hc%3D&reserved=0


More information about the Cygwin mailing list