Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to access a domain using the IP address instead of the domain name like http://xxx.xxx.xxx.xxx?
Answer
To specify which website will open when users refer to the web resource on your server by an IP address:
-
Log in to Plesk.
-
Go to Tools & Settings > IP addresses >
<domain_ip>
> Default site.
All sites hosted on this IP address will be listed. -
Click the address assigned to the website and select the
Default site
from the drop-down list, select the required one and click OK.Note: The default server page will be shown if the
Default site
option is set toNone
.
Additionally, it is possible to set the default domain using the command line on Plesk Onyx. Connect to the server via SSH or RDP and execute the following command (substitute example.com
with the necessary domain name):
# plesk bin subscription_settings --set-default example.com
Comments
6 comments
After adding a new domain, the default domain was automatically set to this new domain. The default domain is set under Tools and Settings-> Ip Addresses. How can this be prevented. We would like the default domain to remain fixed
We would like to be able to set the default domain from the command line. You have mentioned that the command: plesk bin subscription_settings --set-default example.com can be used to set the default domain.
How can we use this command to set the default domain to 'None'. The following command does not work:
[root@vm14558 ~]# plesk bin subscription_settings --set-default None
Wrong syntax for command's '-set-default' parameter
exit status 1
Hello Nadir,
> After adding a new domain, the default domain was automatically set to this new domain. The default domain is set under Tools and Settings-> Ip Addresses. How can this be prevented. We would like the default domain to remain fixed
This may happen only if you create a subscription and assign it to a dedicated IP address. This is implemented this way intentionally.
> How can we use this command to set the default domain to 'None'. The following command does not work:
Unfortunately, there is no way to unset the default domain for an IP address from command line interface. The only possible way is to do it in Plesk GUI.
GUI is displaying the site I set at default instead of plesk gui
Hello Umar Khan,
From what I see, the question was addressed in the ticket created by you in our system.
Shall we assigned commercial SSL on the IP?. For example, I want to access the website via https://*.*.*.*
Please sign in to leave a comment.