How to Change the Default Domain in Plesk Shared IP

When you set up multiple domain names on your Plesk-based web server -- using the same Internet Protocol (IP) address -- the first domain is set to be the default. Therefore, if you try to access that IP address, you will be accessing the first domain name registered to it. In Plesk, you cannot re-order the list to make another name the default. You can however, log in via the secure shell (SSH) and amend the default order.

Instructions

    • 1

      Log-in to your server via SSH.

    • 2

      Type "vi /etc/httpd/conf.d/zz010_psa_httpd.conf" and press "Enter." This loads the list of domains on that IP.

    • 3

      Find the domain that you want to make default. The format is as follows:

      Include /var/www/vhosts/MYSITE.COM/conf/httpd.include

      (with "MYSITE.COM" showing the registered domain.)

    • 4

      Type the line you want to use as default on the first line; and then its original instance.

    • 5

      Press "ESC." Type :q and then :w to exit the text editor. Restart the server by typing "etc/init.d/httpd restart" and pressing "Enter."

Related Searches:

References

Comments

Related Ads

Featured