added virtual host based authentication
Merge pull request #192 from wick-ed/master

added virtual host based authentication