unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Enge <andreas@enge.fr>
To: "Clément Lassieur" <clement@lassieur.org>
Cc: help-guix@gnu.org
Subject: Re: nginx et .htaccess
Date: Sun, 8 Jul 2018 17:45:03 +0200	[thread overview]
Message-ID: <20180708154503.GA5713@jurong> (raw)
In-Reply-To: <87r2mrflf2.fsf@lassieur.org>

Hello Clément,

I think I never replied to your kind e-mail, apologies!

On Fri, May 04, 2018 at 06:14:09PM +0200, Clément Lassieur wrote:
> I do the same with my nginx configuration:
> 
> (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 ...))
> 
> /etc/nginx/htpasswd may contain:
> user:<hashed-pwd>

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

  reply	other threads:[~2018-07-08 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-04 13:29 nginx et .htaccess Andreas Enge
2018-05-04 16:14 ` Clément Lassieur
2018-07-08 15:45   ` Andreas Enge [this message]
2018-07-08 16:27     ` Clément Lassieur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180708154503.GA5713@jurong \
    --to=andreas@enge.fr \
    --cc=clement@lassieur.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).