Discussion in 'Plesk for Linux - 8.x and Older' started by ferrisr, Oct 18, 2005.
How do i change the default domain on an IP address?
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.
Separate names with a comma.