From 9f05361f14569d4c7a38d2fa24674f1c37a33eea Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 8 Jan 2016 12:46:52 +0800 Subject: [PATCH] Allow sites to set HTTP basic authentication through nginx. --- config/nginx.sample.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 0113c3f4ea0..86e05d98e45 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -91,6 +91,9 @@ server { root $public; add_header ETag ""; + # auth_basic on; + # auth_basic_user_file /etc/nginx/htpasswd; + location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ { expires 1y; add_header Cache-Control public;