siyahsapka.org
Don't Learn to hack, hack to LEARN
Sayfalar
Home
Services
Articles
whoami
Monday, October 26, 2015
nginx: reverse proxy with basic authentication
/etc/nginx/sites-enabled/default:
server {
...
location /web/x/ {
proxy_pass http://127.0.0.1:8080/;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
}
...
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment