- Plesk for Linux
Apache works with Nginx as proxy. Website's
allow access only from for IPv6 addresses. Accessing website from IPv6 address fails with error:
PLESK_INFO: client denied by server configuration: /var/www/vhosts/domain.tld/httpdocs/index.php
is not properly set.
Add the following lines in the domain's
CONFIG_TEXT: SetEnvIf Remote_Addr "2001:777:f8:1::b101:c991" realremoteaddr <== one line per IP
Allow from env=realremoteaddr
Note: If need to provide an access from additional addresses add additional
SetEnvIf Remote_Addr "another_valid_IPv6_address" realremoteaddrline.
Test it using
CONFIG_TEXT: # curl -v -I http://domain.tld:7080/index.php
* About to connect() to domain.tld: port 7080 (#0)
* Trying 2001:777:f8:1::b101:c991... connected