Last active
November 7, 2021 07:37
-
-
Save parsafatehi/8ccd5dafaf3224cf04797335e7ac2764 to your computer and use it in GitHub Desktop.
Redirect subdomain to a URL with Nginx (e.g. Zoho webmail custom mail URL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name webmail.DOMAIN.com; | |
rewrite ^(.*) https://mail.zoho.com/zm/#mail/views/unread$1 permanent; | |
} | |
server { | |
listen 443 ssl; | |
server_name webmail.DOMAIN.com; | |
rewrite ^(.*) https://mail.zoho.com/zm/#mail/views/unread$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment