From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26988 invoked from network); 10 Dec 2020 15:01:20 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 10 Dec 2020 15:01:20 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id e5cc626d for ; Thu, 10 Dec 2020 10:01:16 -0500 (EST) Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id cc249ebe for ; Thu, 10 Dec 2020 10:01:15 -0500 (EST) Received: from hekate.asta.kit.edu ([141.3.145.153] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1knNRP-0008Al-TX; Thu, 10 Dec 2020 16:01:14 +0100 Received: from donnerwolke.asta.kit.edu ([141.3.145.61] helo=donnerwolke.usta.de) by hekate.usta.de with esmtp (Exim 4.92.2) (envelope-from ) id 1knNRO-000189-JK; Thu, 10 Dec 2020 16:01:10 +0100 Received: from athene.asta.kit.edu ([141.3.145.60] helo=athene.usta.de) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1knNRO-000705-Ds; Thu, 10 Dec 2020 16:01:10 +0100 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 0d01ef9c; Thu, 10 Dec 2020 16:01:10 +0100 (CET) Date: Thu, 10 Dec 2020 16:01:10 +0100 From: Ingo Schwarze To: Aisha Tammy Cc: discuss@mandoc.bsd.lv Subject: Re: Help with setting up man.cgi with nginx Message-ID: <20201210150110.GG69368@athene.usta.de> References: <00b30a32-e90b-7f72-3120-63e0d38fe36a@aisha.cc> <20201210134616.GF69368@athene.usta.de> <97060694-da6a-0717-7790-8e474c66b48f@aisha.cc> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97060694-da6a-0717-7790-8e474c66b48f@aisha.cc> User-Agent: Mutt/1.12.2 (2019-09-21) Hi Aisha, Aisha Tammy wrote on Thu, Dec 10, 2020 at 09:26:36AM -0500: > I finally got it working *cries in lost sanity*... > > Turns out I (or nginx or whatever) was not passing the PATH_INFO > fastcgi parameter. Oh, that does indeed explain why you always got the start page and the two links on the start page only brought you back to the start page. So, are you saying that with your new configuration, http://localhost/ls.1 and the like now work as expected? If so, does http://localhost/?query=ls work, too? If not, i suspect you may need to pass QUERY_STRING in the same way as you pass PATH_INFO, see https://man.openbsd.org/man.cgi.8#ENVIRONMENT for details. If it already works right now, then maybe nginx passes QUERY_STRING by default - though i don't quite see why it would pass QUERY_STRING by default but not PATH_INFO. That would feel like an odd choice of defaults to me. > Obscure chases through the internet led me to the final nginx.conf > configuration which finally made it work... > Please don't ask me on how this works, it's dangerous forbidden dark arts > of nginx magic. Don't worry, i won't ask. :-) (But do consider that running a webserver on the Internet with a configuration you don't understand is seriously dangerous. So you should ask yourself how your server works, until you understand it, or use something else that you do understand.) > This was my first ever use of nginx, all my other thingies > are on obsd httpd. > > Now to see how to work a chroot with nginx and fcgiwrap. > #nginx irc users told me that this is stupid What is stupid? Running man.cgi(8) at all? Or running it on Linux? or running it on nginx? Or ...? > and that this is an OS thing and not an application thing -.- Which aspect of all this is an OS thing, and what does "an application thing" mean? I don't think i understand what you are tryong to say with this sentence. > , so that was fun. In that case, enjoy! ;-/ Ingo -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv