ProxyPass to an IPv6 link-local address

Lexi Winter <[email protected]> Thu, 17 Jul 2025 22:04:48 +0100
Newsgroups gmane.comp.apache.user
Message-ID <[email protected]>
hello,

i am having trouble trying to use ProxyPass to proxy a request to an
HTTP backend on an IPv6 link-local address.  for example, using this:

<Location />
	ProxyPass "http://[fe80::2%vm.cgit]:80"
</Location>

returns an error:

AH01083: error parsing URL http://[fe80::2%vm.cgit]:80: Invalid host/port

i was able to get this working by adding the link-local address to
/etc/hosts:

fe80::2%vm.cgit		cgit-backend.internal

and then using the hostname in Apache:

<Location />
	ProxyPass       http://cgit-backend.internal:80/
</Location>

however, i feel like it should be possible to use an IP address in
ProxyPass without having to edit /etc/hosts.

this feels like a bug to me but, based on the bug reporting guidelines,
i thought i would ask here first.  so, does anyone have any suggestions?