.htaccess - how to protect a django web app deployed in elastic beanstalk docker nginx using password -


i've django web application hosted in aws elastic beanstalk docker , nginx. using supervisor start nginx , uwsgi. need protect website using password. i've tried using .htaccess.

htpasswd -cb /etc/nginx/.htpasswd admin admin  

and added nginx config with

 location / {     auth_basic "restricted";    auth_basic_user_file  /etc/nginx/.htpasswd;    uwsgi_pass unix:/var/sockets/api.sock;    include    /home/docker/uwsgi_params;  } 

it's working asking password repeatedly. htaccess asks password once in session. asks username , password every time click 1 field or button. there way fix it?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -