nginx default configurations off

twhiting9275

Verified User
Joined
Apr 10, 2004
Messages
66
Location
Cedar Falls, IA
It would appear that the default nginx configs (at least nginx_apache) are not quite correct and need to be updated.

When building, by default, nginx adds in ipv6 bindings to the configuration file ( /etc/nginx/nginx-vhosts.conf ). For most, this is ok. However, not for all.

If someone, say, doesn't have IPv6 added to the server (I know of at least one that doesn't provide it right now), then nginx won't start unless you take those lines out. Hopefully they won't be added back through some magic in the future

It would be best if there was a check for compatibility and IF ipv6 was enabled, THEN those lines are added. Not just adding them
 
It would appear that the default nginx configs (at least nginx_apache) are not quite correct and need to be updated.

When building, by default, nginx adds in ipv6 bindings to the configuration file ( /etc/nginx/nginx-vhosts.conf ). For most, this is ok. However, not for all.

If someone, say, doesn't have IPv6 added to the server (I know of at least one that doesn't provide it right now), then nginx won't start unless you take those lines out. Hopefully they won't be added back through some magic in the future

It would be best if there was a check for compatibility and IF ipv6 was enabled, THEN those lines are added. Not just adding them
Please let us know the output of:
Code:
/usr/local/directadmin/directadmin c | grep v6

I don’t think ipv6 is disabled.
 
atleast if your server don't have IPV6, you need to completely disable from system. checking by
Code:
ip a | grep inet6
 
There are no routable ipv6 addresses on the server

You are correct, DA thinks ipv6 is enabled but even ::1 doesn't work . The server / host doesn't support ipv6 and in this case, that's fine
What is the output from the command that @smtalk gave you? It’s possible that you need to disable ipv6 in the directadmin config file.
 
Back
Top