- Plesk for Linux
Domain forwarding does not work: Plesk Default Page is shown when accessing example.com instead of redirecting to the destination address.
example.com resolves to IP address 203.0.113.2:
# ping example.com
PING example.com (203.0.113.2) 56(84) bytes of data.
Web server configuration file contains another IP address for the virtual host:
# grep VirtualHost /etc/apache2/plesk.conf.d/forwarding/example.com_httpd.conf
<VirtualHost 203.0.113.3:80 >
# grep VirtualHost /etc/httpd/conf/plesk.conf.d/forwarding/example.com_httpd.conf
<VirtualHost 203.0.113.3:7080 127.0.0.1:7080>
Select the IP address which the forwarder resolves to:
Navigate to Domains > example.com > Hosting Settings and change the Hosting type to Website hosting. Enter system user credentials and click OK.
Navigate to Domains > example.com > Web Hosting Access and select 203.0.113.2 as the IP address for the domain from the drop-down list.
Navigate to Domains > example.com > Hosting Settings and change the Hosting type to Forwarding. Specify Destination address and Forwarding type;
Connect to the server via SSH.
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 a forwarder using Plesk interface at Plesk UserVoice portal.