Reverse proxy works with SSL
New method establish_ssl to avoid duplicated code
Merge pull request #170 from jsoriano/master

Reverse proxy works with SSL