Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) #1471

Open
userarrayuser opened this issue Jan 28, 2024 · 0 comments

Comments

@userarrayuser
Copy link

Hello,

I have a problem like issue #1125
On CloudLinux 8.9.1 and cPanel/WHM 116.0.10 with Engintron 2.2 I get Nginx v1.14.1 this error:
nginx[8076]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx[8076]: nginx: configuration file /etc/nginx/nginx.conf test failed
systemd[1]: nginx.service: Control process exited, code=exited status=1
systemd[1]: nginx.service: Failed with result 'exit-code'.
systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
systemd[1]: nginx.service: Unit cannot be reloaded because it is inactive.

I only changed custom_rules for Nginx:
set $PROXY_DOMAIN_OR_IP "123.45.67.89"

What I tried:
Enable ipv6 as mentioned before with method 2
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
But after rebbot nothing changed

Tried edit default.conf:
#listen 80 default_server;
listen [::]:80 default_server ipv6only=off;

change to

listen 80 default_server;
#listen [::]:80 default_server ipv6only=off;

As far nothing helped. If I uninstall Engintron everything is works.
What I missed?

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant