🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mailing.unix.courier-imap
Article #1

Re: [courier-users] I need working nginx configuration for webadmin

#1
From: Jan H.
Date: Mon, 05 Oct 2020 07:45
15 lines
1976 bytes
> i was not able to get fcgiwrap to work for this, it blacklists several environment variables (PATH_INFO, etc) which sqwebmail needs.
The blacklist only applies to variables fcgiwrap inherits from its environment. It doesn't mess with variables passed through the fastcgi socket. Try running this minimal example program through fcgiwrap:

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
	if (getenv("PATH_INFO"))
		printf("Content-Type: text/plain\n\nPATH_INFO is %s\n", getenv("PATH_INFO"));
	else
		puts("Content-Type: text/plain\nStatus: 500 Internal Server Error\n\nUh-oh");

	return 0;
}
Technical Details
Message-ID: <53869a84-2550-4ab4-a6ac-c24c630a9d36n@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail
References: <mailpost.1462015984.7348728.75086.mailing.unix.courier-imap@FreeBSD.cs.nctu.edu.tw> <98b7fea6-8a05-4c8f-be42-81b999f167a5@googlegroups.com> <fe97ad27-0492-4b3f-9967-4bd092552a4fn@googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <53869a84-2550-4ab4-a6ac-c24c630a9d36n@googlegroups.com>
Subject: Re: [courier-users] I need working nginx configuration for webadmin
Date: Mon, 05 Oct 2020 07:45:40 +0000
From: "Jan H." <davywebshowjan@gmail.com>
References: <mailpost.1462015984.7348728.75086.mailing.unix.courier-imap@FreeBSD.cs.nctu.edu.tw> <98b7fea6-8a05-4c8f-be42-81b999f167a5@googlegroups.com> <fe97ad27-0492-4b3f-9967-4bd092552a4fn@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail
X-Received: by 2002:ac8:31b4:: with SMTP id h49mr5696164qte.258.1601883941574; Mon, 05 Oct 2020 00:45:41 -0700 (PDT)
X-Received: by 2002:aca:cc54:: with SMTP id c81mr7690212oig.74.1601883941193; Mon, 05 Oct 2020 00:45:41 -0700 (PDT)
Newsgroups: mailing.unix.courier-imap
In-Reply-To: <fe97ad27-0492-4b3f-9967-4bd092552a4fn@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=145.130.116.135; posting-account=6J6CbwoAAAAdqrUDrz8kxLeYrO-KlV50
Nntp-Posting-Host: 145.130.116.135
User-Agent: G2/1.0
Mime-Version: 1.0
Injection-Date: Mon, 05 Oct 2020 07:45:41 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14