OS: Centos 6 x86_64
Litespeed: Litespeed Web Server Enterprise v4.2.1 without apache/panels
When we configure listener to accept ipv4 and ipv6 connections in php in SERVER_ADDR ipv4 display as ::ffff:XX.XX.XX.XX some client has errors when adding ::ffff: before ipv4.
If adding 2 listener for ipv4 and ipv6 - need duplicate vhost - this is unacceptable
How we can resolve this issue? For nginx this fix easy:
Litespeed: Litespeed Web Server Enterprise v4.2.1 without apache/panels
When we configure listener to accept ipv4 and ipv6 connections in php in SERVER_ADDR ipv4 display as ::ffff:XX.XX.XX.XX some client has errors when adding ::ffff: before ipv4.
If adding 2 listener for ipv4 and ipv6 - need duplicate vhost - this is unacceptable
How we can resolve this issue? For nginx this fix easy:
Code:
set $remote_addr_new $remote_addr;
if ($remote_addr ~* ^::ffff:(.*))
{
set $remote_addr_new $1;
}
fastcgi_param REMOTE_ADDR $remote_addr_new;