1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Change default domain on IP

Discussion in 'Plesk for Linux - 8.x and Older' started by ferrisr, Oct 18, 2005.

  1. ferrisr

    ferrisr Guest

    0
     
    How do i change the default domain on an IP address?
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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'
     
  3. ferrisr

    ferrisr Guest

    0
     
    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).
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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).
     
  5. ferrisr

    ferrisr Guest

    0
     
    Thanks. What do i do to have it rewrite the configuration files for apache now?
     
  6. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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.
     
  7. ferrisr

    ferrisr Guest

    0
     
    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.
     
  8. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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.
     
Loading...