printf "username:`openssl passwd -apr1`n" >> /etc/nginx/.htpasswd
I installed gekko on an EC2 instance however by adding:
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;

to the / etc / nginx / sites-enabled / default file and typing at the command prompt:
printf "username:` openssl passwd -apr1`n ">> /etc/nginx/.htpasswd

I am prompted to enter the password for 2 times, no other password I enter after I can access via web, presenting the user window and password and I can not access the web interface. 
When I remove the

auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;

everything works perfectly

The EC2 instance is with ubuntu 18.04

Could someone help me? Sorry the english, more and the google translator.
I know the OP may not see this but for future reference if you copy and paste it straight from the instructions page the username will always be "username".

printf "change_this_to your_own_username:` openssl passwd -apr1`n ">> /etc/nginx/.htpasswd

Forum Jump:

Users browsing this thread: