From: "Clément Lassieur" <clement@lassieur.org>
To: Andreas Enge <andreas@enge.fr>
Cc: help-guix@gnu.org
Subject: Re: nginx et .htaccess
Date: Sun, 08 Jul 2018 18:27:51 +0200 [thread overview]
Message-ID: <87muv1itfc.fsf@lassieur.org> (raw)
In-Reply-To: <20180708154503.GA5713@jurong>
I'm glad it works Andreas!
Clément
Andreas Enge <andreas@enge.fr> writes:
> 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
prev parent reply other threads:[~2018-07-08 16:28 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
2018-07-08 16:27 ` Clément Lassieur [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muv1itfc.fsf@lassieur.org \
--to=clement@lassieur.org \
--cc=andreas@enge.fr \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.