From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: nginx et .htaccess Date: Sun, 8 Jul 2018 17:45:03 +0200 Message-ID: <20180708154503.GA5713@jurong> References: <20180504132914.GA3059@jurong> <87r2mrflf2.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcBs4-0000A0-S4 for help-guix@gnu.org; Sun, 08 Jul 2018 11:45:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcBs4-0003Wc-4B for help-guix@gnu.org; Sun, 08 Jul 2018 11:45:08 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]:41830) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcBs3-0003VX-SP for help-guix@gnu.org; Sun, 08 Jul 2018 11:45:08 -0400 Content-Disposition: inline In-Reply-To: <87r2mrflf2.fsf@lassieur.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?iso-8859-15?Q?Cl=E9ment?= Lassieur Cc: help-guix@gnu.org Hello Cl=E9ment, I think I never replied to your kind e-mail, apologies! On Fri, May 04, 2018 at 06:14:09PM +0200, Cl=E9ment Lassieur wrote: > I do the same with my nginx configuration: >=20 > (nginx-server-configuration > (listen '("443 ssl" "[::]:443 ssl")) > (server-name (list "foo.org")) > (root "/var/www/foo") > (locations > (list > (nginx-location-configuration > (uri "/") > (body (list "index index.html;" > "auth_basic \"closed site\";" > ;; needs to be set manually > "auth_basic_user_file /etc/nginx/htpasswd;"))))) > (ssl-certificate ...) > (ssl-certificate-key ...)) >=20 > /etc/nginx/htpasswd may contain: > user: This worked well, indeed, thanks a lot! It did not even occur to me that I could store state somewhere on the machine and use it in my operating system declaration... Andreas