siyahsapka.org
Don't Learn to hack, hack to LEARN
Sayfalar
(Move to ...)
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
‹
›
Home
View web version
No comments:
Post a Comment