Plesk

Forwarding domain on Plesk for Linux server does not work: Web Server’s Default Page is shown, example.com resolves to another IP address

Symptoms

Cause

Web server configuration file of the forwarding domain contains another IP address:

On Ubuntu/Debian:

# grep VirtualHost /etc/apache2/plesk.conf.d/forwarding/example.com_httpd.conf
<VirtualHost 203.0.113.3:80 >
</VirtualHost>

On RHEL-based operating systems:

# grep VirtualHost /etc/httpd/conf/plesk.conf.d/forwarding/example.com_httpd.conf
<VirtualHost 203.0.113.3:7080 127.0.0.1:7080>
</VirtualHost>

Resolution

Select the correct IP address for the forwarding domain in Plesk - the one to which it resolves:

In the Plesk interface

  1. Log in to Plesk.

  2. Go to Domains > example.com > Hosting Settings, change the option Hosting type to Website hosting, enter system user credentials, and click OK.

  3. Go to Domains > example.com > Web Hosting Access, select 203.0.113.2 as the IP address for the domain from the drop-down list, and click OK/Apply.

  4. Go to Domains > example.com > Hosting Settings, change the Hosting type to Forwarding, specify Destination address and Forwarding type, and click OK/Apply.

In the command-line interface

  1. Connect to the server using SSH.

  2. Run the following command to set the necessary IP address:

    # plesk bin subscription --update example.com -ip 203.0.113.2

You can also vote for implementation of the easier way to change the IP address for forwarding domains using Plesk interface at Plesk UserVoice portal.

Exit mobile version