Port proxy-redirections from Apache to Nginx

Only done if SSL client is used
Merge pull request #1036 from Zentyal/ejhernandez/migrate-proxy-redir-nginx

Port proxy-redirections from Apache to Nginx