diff options
Diffstat (limited to 'guix/etc/nginx/apps/drupal/admin_basic_auth.conf')
-rw-r--r-- | guix/etc/nginx/apps/drupal/admin_basic_auth.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/guix/etc/nginx/apps/drupal/admin_basic_auth.conf b/guix/etc/nginx/apps/drupal/admin_basic_auth.conf new file mode 100644 index 0000000..cc796ce --- /dev/null +++ b/guix/etc/nginx/apps/drupal/admin_basic_auth.conf @@ -0,0 +1,12 @@ +# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*- + +## Protect the /admin URIs with a basic auth. +location ^~ /admin { + auth_basic "Restricted access"; #realm + auth_basic_user_file .htpasswd-users; + + ## Include the specific FastCGI configuration. This is for a + ## FCGI backend like php-cgi or php-fpm. + include apps/drupal/fastcgi_drupal.conf; + fastcgi_pass phpcgi; +} |