79178120

Date: 2024-11-11 15:00:18
Score: 1
Natty:
Report link

I have resolved the issue:

You need to create the password by specifying the realm as follows:

htdigest -c .htpasswd realmyouwanttoset username_setted 
Enter password: pwfantasy 
Retype password: pwfantasy 

Then, you can set the arguments as shown below:

SWUPDATE_WEBSERVER_ARGS=" -r /srv/swupdate/mongoose-webapp -p 8081 --auth-domain realmyouwanttoset --global-auth-file /whereyourfileis/.htpasswd " 

Basic authentication configured successfully. 📈📈

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Victoria