Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement