Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hn92726819
· 1y ago · 0 comments
I'm not that familiar with nginx config. Does this protect against path traversal? Ex: host=../../../docker.sock
Comments
[–]
sigil
1y ago
nginx validates hostnames per the spec, and to your question specifically it rejects requests that would put a slash in $host:
https://github.com/nginx/nginx/blob/b6e7eb0f5792d7a52d2675ee...