Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- location / {
- auth_basic 'Restricted';
- auth_basic_user_file /etc/nginx/conf.d/.htpasswd;
- root /usr/share/nginx/html;
- index index.html index.htm;
- location /api {
- satisfy any;
- allow all;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement