Article ID: 122612, created on Aug 9, 2014, last review on Aug 9, 2014

  • Applies to:
  • Plesk for Linux/Unix


When I try to access from the same machine where Plesk is installed, I am redirected to one of Plesk domains instead of default page (or Apache mod_status website).


Domains which have IPv6 binding are added additional hard-coded IPv4 binding on This disrupts functionality of some modules like mod_status. If one of these domains is set is default for some IPv6 address, it then becomes accessible at

This issue was submitted as internal request with ID: PPPM-1865.


You can apply a custom solution provided below to fix the issue on your installation:

  1. Backup all the original files:

    cd /usr/local/psa/admin/conf/templates/
    mkdir -p custom/domain/service
    cp -n /usr/local/psa/admin/conf/templates/{default,custom}/domain/domainVirtualHost.php
    cp -n /usr/local/psa/admin/conf/templates/{default,custom}/domain/service/proxy.php
    cp -n /usr/local/psa/admin/conf/templates/{default,custom}/nginxWebmailPartial.php
    cp -n /usr/local/psa/admin/conf/templates/{default,custom}/nginx.php
    cp -n /usr/local/psa/admin/conf/templates/{default,custom}/domain/nginxForwarding.php
  2. Edit the file /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php. Remove the following string (make sure not to remove any other characters):

    <?php echo ($VAR->server->webserver->proxyActive && $OPT['ipAddress']->isIpV6()) ? "" . ($OPT['ssl'] ? $VAR->server->webserver->httpsPort : $VAR->server->webserver->httpPort) : ''; ?>
  3. Edit several files via stream editor:

    sed -i 's/proxyEscapedAddress/escapedAddress/g' /usr/local/psa/admin/conf/templates/custom/domain/service/proxy.php /usr/local/psa/admin/conf/templates/custom/nginxWebmailPartial.php /usr/local/psa/admin/conf/templates/custom/nginx.php
  4. Edit fle /usr/local/psa/admin/conf/templates/custom/domain/nginxForwarding.php.Replace string

    proxy_pass<?php echo $OPT['backendPort'] ?>;


    proxy_pass http://<?php echo $OPT['ipAddress']->escapedAddress ?>:<?php echo $OPT['backendPort'] ?>;
  5. Reconfigure all websites to apply new settings (this may take time):

    /usr/local/psa/admin/bin/httpdmng --reconfigure-all

After that, all bindings will receive proper values and will display default web page unless occupied by other module (mod_status) or web server.

Search Words





29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c

Email subscription for changes to this article
Save as PDF