Hacker News new | ask | show | jobs
by anacrolix 1009 days ago
How is it different from just reading the Host header and serving a directory based on that?
1 comments

> How is it different from just reading the Host header and serving a directory based on that?

Well I hope that's not all you do...

    curl -H 'etc.example.com' 'https://www.example.com/shadow'
-> /etc/shadow
It would be more like /somedir/etc.example.com/shadow