nginx and ipv6-fix

Hi,
nice fix for error, but in wrong place (goes inside default_php-file). Regex needs also escaping.

Regards,
Pertti