You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I 'm using CENTS 7 running oxidized and I' d like some kind of web authentication, to avoid undue hits.
I tried the following commands below , but the pop window does not appear to enter user and password.
Could someone suggest me something or exemplify how can I do this?
I already created the username and password with:
sudo htpasswd -c /etc/nginx/.htpasswd nginx
in nginx.conf:
server {
listen80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
auth_basic"Acesso Restrito";
auth_basic_user_file /etc/nginx/.htpasswd;
// Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location/ {
proxy_pass ip:port/;
//auth_basic"Acesso Restrito";
//auth_basic_user_file /etc/nginx/.htpasswd;
}
error_page404 /404.html;
location= /40x.html {
}
error_page500502503504 /50x.html;
location= /50x.html {
}
}
Thanks!
Caíque
The text was updated successfully, but these errors were encountered:
Hello guys,
I 'm using CENTS 7 running oxidized and I' d like some kind of web authentication, to avoid undue hits.
I tried the following commands below , but the pop window does not appear to enter user and password.
Could someone suggest me something or exemplify how can I do this?
I already created the username and password with:
in nginx.conf:
Thanks!
Caíque
The text was updated successfully, but these errors were encountered: