На вкладке корневого каталога iis веб-сайта существует опция "перенаправление к URL", введите там "http://ex.com" и выберите: "постоянное перенаправление для этого ресурса".
Необходимо будет создать веб-сайт о каждом веб-сайте, который Вы хотите перенаправить на ex.com. Сделайте это с другим IP или разместите заголовки.
The .pem file is simply the same as the ~/.ssh/id_rsa file, just with a different extension. It can be used in the same way as the securityTier.pem file you're using with ssh -i.
It is the private key for that user.
Here's an article which explains the process quite well: http://www.cyberciti.biz/faq/force-ssh-client-to-use-given-private-key-identity-file/