SHARE
TWEET

Untitled

a guest Mar 15th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen       80;
  3.     server_name  localhost;
  4.  
  5.     location / {
  6.         auth_basic 'Restricted';
  7.         auth_basic_user_file /etc/nginx/conf.d/.htpasswd;
  8.         root   /usr/share/nginx/html;
  9.         index  index.html index.htm;
  10.  
  11.         location /api {
  12.             satisfy any;
  13.             allow   all;
  14.         }
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top