Symptoms
-
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.
Cause
Web server configuration file contains another IP address for the virtual host:
For Ubuntu/Debian:
# grep VirtualHost /etc/apache2/plesk.conf.d/forwarding/example.com_httpd.conf
<VirtualHost 203.0.113.3:80 >
</VirtualHost>
For CentOS:
# 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 IP address which the forwarder resolves to:
Via Plesk UI
-
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;
-
Click OK/Apply.
Via command-line interface
-
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.