Old IPv6's still listed in user's httpd.conf's

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,405
Location
London UK
Ok, so I stupidly used the ipswap.sh, not only for my IPv4's, but I tried my IPv6's too. Now the old IPv6's are suck in the user's httpd.conf's... There are no mentions of the old IPs anywhere in /usr/local/directadmin/data/users/* files, and a config rewrite doesn't help.

eg.
[warn] VirtualHost 2001:41d0:1:xxxx:0:0:4:443 overlaps with VirtualHost 2001:41d0:1:xxxx:0:0:0:4:443, the first has precedence, perhaps you need a NameVirtualHost directive

Any ideas?

Martynas tried to help but was unsuccessful.
 
Last edited:
Hello,

remove them from

/usr/local/directadmin/data/admin/ip.list
/usr/local/directadmin/data/admin/ips/

and rewrite apache's configs.
 
To follow up, I've mailed John this thread link and I realised I linked my IPv4's to my IPv6's...... and indeed this was why. I guess the ipswap.sh doesn't check for linked IP's?
 
Correction, I do already see the code in there...
try running this in debug mode:
Code:
cd /usr/local/directadmin
echo "action=ipswap&value=linked_ips&old=2001:41d0:1:92d0:XXXX:XXXXX::XXXX&new=2001:41d0:a:XXXX:XXXXX::XXXX" >> data/task.queue.cb; ./dataskq d2000 --custombuild

And then confirm if they get updated in:
Code:
/usr/local/directadmin/data/admin/ips/*
where applicable. (there is a variable there).

John
 
Back
Top