kb: how-to
Plesk for Linux
Applicable to:
- Plesk for Linux
Question
How to redirect IP address to domain name URL on Plesk for Linux server?
Answer
Note: Replace example.com and 203.0.113.2 with the actual domain name and IP address. If you do not have administrative access to Plesk server, contact your hosting provider.
- Log in to Plesk.
- Specify the domain example.com in the field Default site in the menu Tools & Settings > IP Addresses > 203.0.113.2:
-
Add the following directive to the field Additional nginx directives in Domains > example.com > Apache & nginx settings and click OK or Apply at the bottom of the page:
CONFIG_TEXT: if ($host ~ '203.0.113.2'){
rewrite ^/(.*)$ https://example.com/$1 permanent;
}
Comments
1 comment
i want the IP of plesk name servers. where is it? the name servers created by plesk ns1.fmsorg.info & ns2.fmsorg.info do not resolve
Please sign in to leave a comment.