Article ID: 114425, created on Jul 23, 2012, last review on Jun 26, 2015

  • Applies to:
  • Plesk 11.x for Linux

Release Notes

The issue has been fixed since Plesk 11.0.9 MU#15.
Please follow instructions from KB #114803.


Some of the links in PHP pages redirect to port 7080 or 7081 for no reason. For example, when I click on a

link, it redirects me here:


If Nginx is enabled on the server, PHP server variables start looking like this:
_SERVER["HTTP_HOST"] existing.dom
_SERVER["SERVER_NAME"] existing.dom

As a result, when there is no trailing slash at the end of a URL, it gets redirected to port 7080 or 7081. For example, this code
header('Location: http://existing.dom/incorrect');

will redirect the browser to http://existing.dom:7080/incorrect.


The issue will be fixed in a future update for which a new Knowledge Base article will be created. You may subscribe to new articles on Parallels Plesk Panel products if you wish to receive notifications about their creation.

Workaround 1

In your PHP code, always put a trailing slash at the end of the URL. For example, the above example should look like this:
header('Location: http://existing.dom/correct/');

Workaround 2

If there is a lot of PHP code to correct, you may use the following alternative workaround:
1.      Create a directory:
copy the /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php file to the newly created directory
2.      Edit the resulting custom template, /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php:

Truncate line 6 to
ServerName "<?php echo $VAR->domain->asciiName ?>"

The resulting difference should be:
# diff /usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php
< ServerName "<?php echo $VAR->domain->asciiName ?>:<?php echo $OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort ?>"
> ServerName "<?php echo $VAR->domain->asciiName ?>"

After that, you need to reconfigure Apache configuration for the domain:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain <domain_name>


0a53c5a9ca65a74d37ef5c5eaeb55d7f 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838

Email subscription for changes to this article
Save as PDF