From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur Subject: Re: nginx et .htaccess Date: Sun, 08 Jul 2018 18:27:51 +0200 Message-ID: <87muv1itfc.fsf@lassieur.org> References: <20180504132914.GA3059@jurong> <87r2mrflf2.fsf@lassieur.org> <20180708154503.GA5713@jurong> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcCXX-0000f1-LF for help-guix@gnu.org; Sun, 08 Jul 2018 12:28:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcCXT-0004LF-AE for help-guix@gnu.org; Sun, 08 Jul 2018 12:27:59 -0400 Received: from mail.lassieur.org ([83.152.10.219]:34478) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcCXS-0004KH-VH for help-guix@gnu.org; Sun, 08 Jul 2018 12:27:55 -0400 In-reply-to: <20180708154503.GA5713@jurong> 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: Andreas Enge Cc: help-guix@gnu.org I'm glad it works Andreas! Cl=C3=A9ment Andreas Enge writes: > Hello Cl=C3=A9ment, > > I think I never replied to your kind e-mail, apologies! > > On Fri, May 04, 2018 at 06:14:09PM +0200, Cl=C3=A9ment 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