Plesk for Linux
kb: how-to
ABT: Group A
Applicable to:
- Plesk for Linux
Question
How to redirect IP address to domain name URL?
Answer
Note: Replace example.com and 203.0.113.2 with the actual domain name and IP address. If you don't have administrative access to Plesk server contact your hosting provider.
- Log into Plesk
- Specify the domain example.com in the Default site field at Tools & Settings > IP Addresses > 203.0.113.2 page:
-
Add the following directive in Domains > example.com > Apache & nginx settings > Additional nginx directives and click Apply:
CONFIG_TEXT: if ($host ~ '203.0.113.2'){
rewrite ^/(.*)$ https://example.com/$1 permanent;
}
Comments
0 comments
Please sign in to leave a comment.