httpd custom - no token for ipv6

mejay

Verified User
Joined
Mar 1, 2020
Messages
27
I'm using /usr/local/directadmin/data/templates/custom/virtual_host2_secure.conf.CUSTOM.4.post to add another VirtualHost port number to each user, with the following:

Code:
<VirtualHost |IP|:1234>

That works fine ... for IPv4, because |IP| is replaced with the IPv4 for each site. However, IPv6 traffic is broken with this port, because the IPv6 address is not included here.

If I manually add the IPv6 like this, then it works fine:
Code:
<VirtualHost |IP|:1234 [my:ipv6:address]:1234>

Is there a variable available for the IPv6 address like that? Or is hard coding it like I have done the best way to do this?
 
Back
Top