I'm trying to get my first nginx server setup, and am having trouble setting up ipv4 and ipv6.
I have this in the top of my config file (it's the only server block in the config file):
server {
# Listen for requests on these ports
listen 80 default;
listen [::]:80 default_server;
}
And this is the error I get when I try to start ngnix:
* Restarting nginx nginx
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
Any help is appreciated.