Solved vhosts ip6 link to serve website

Zelda

Verified User
Joined
Jan 27, 2020
Messages
14
Hi guys,

I have to manually add the IPv6 IP address in the httpd.conf of a domain in my Directadmin accounts. But when I do, it also overwrites it with just the IPv4 in it.

This is the way I adjust my httpd.conf in:

/usr/local/directadmin/data/users/USERNAME/httpd.conf

Code:
<VirtualHost 123.123.123.12:443 [xxx:xxx:xxxx:xxx::1]:443>
    ServerName www.xxx.com
    ServerAlias xxx.com
    DocumentRoot /home/USERNAME/domains/xxx.com/public_html

    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/xxx.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/xxx.com/privkey.pem
    SSLCACertificateFile /etc/letsencrypt/live/xxx.com/chain.pem

    # Other configurations...
</VirtualHost>

Some extra info

The IPv6 address is also linked in IP management:
Screenshot_3.png



The unique IPv6 is also linked to the shared IPv4

Screenshot_6.png


Also linked to the account:

Screenshot_4.png


How can I fix it so that when I add the additional IPv6 address in DirectAdmin to an account, it also makes the website available from the IPv6? Is there's something I'm not doing and should do?

ANSWER:
Make sure you link the IP4 address to the IP6 address too in IP Management. This is what I've hadn't done yet. This fixed the issue.

Thank you.
 
Last edited:
Make sure you link the IP4 address to the IP6 address too in IP Management. This is what I've hadn't done yet. This fixed the issue.
You -only- need to link the ipv6 to the ipv4, not the other way around and not both!
And normally the ipv6 is not the shared ip.

Unless you're using the ipv6 as main address then it's the other way around.
I don't know exactly what you were doing, but adding manually in httpd.conf is normally never required.
 
Back
Top