summaryrefslogtreecommitdiff
path: root/etc/nginx/apps/drupal/admin_basic_auth.conf
blob: cc796ce0122943661c23c4eb17dfa436a57abfc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}