Advertisement
tocheeba

Kibana Nginx Password Protected Redirecct (port 5601 to 80)

Oct 13th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. events {
  2. worker_connections 1024;
  3. }
  4.  
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8.  
  9. server {
  10. listen 80;
  11. server_name localhost;
  12. auth_basic "Restricted";
  13. auth_basic_user_file .htpasswd;
  14. location / {
  15. proxy_set_header X-Real-IP $remote_addr;
  16. proxy_set_header Host $http_host;
  17. proxy_pass http://127.0.0.1:5601;
  18. }
  19. error_page 404 /404.html;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement