• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Change default domain on IP

Login to Plesk CP and click on Server, click on IP Addresses.

In the column 'Hosting', click on the number on the IP address line.

Click on the dot for the domain you want to be default, click on the link 'Set as default'
 
I want there to be no default domain set, like my other ip has (so if you just go to that ip, it goes to my no website configured here page).
 
Ok, that was not clear from what you posted here.

It looks like the psa database, in table "IP_Addresses" has a field "default_domain_id" which would either be NULL (for exclusive IPs), zero (for shared IPs), or the domain id (value greater than zero if a default domain has been set).
 
Thanks. What do i do to have it rewrite the configuration files for apache now?
 
Looks like after you modify the database, the only other thing you have to do is manually edit the /etc/httpd/conf/httpd.include file to move the line

"Include /home/httpd/vhosts/domain.tld/conf/httpd.include"

from before the <VirtualHost \ tag to the bottom of the file, then restart the apache service.
 
I looked in there, I dont see anything that is different for the second ip than the first... there is nothing to move anyplace else.
 
If you look in the /etc/httpd/conf/httpd.include file, do a search for lines beginning with 'Include' which specify the domain path/httpd.include.

The Include line for the domain which WAS set for the IP default should be moved to the bottom of the file, after the <VirtualHost> section. Once this is done and apache is restarted, my test domain and IP then reverted back to the default Plesk page when browsing to the IP.
 
Back
Top