This is the configuration of default.conf:
server {
#listen 80 default_server;
listen [::]:80 default_server ipv6only=off;
server_name localhost;
deny all; # DO NOT REMOVE OR CHANGE THIS LINE - Used when Engintron is disabled to block Nginx from becoming an open proxy
# Set the port for HTTP proxying
set $PROXY_TO_PORT 80;
include common_http.conf;
location = /nginx_status {
stub_status;
access_log off;
log_not_found off;
# Uncomment the following 2 lines to make the Nginx status page private.
# If you do this and you have Munin installed, graphs for Nginx will stop working.
#allow 127.0.0.1;
#deny all;
}
location = /whm-server-status {
proxy_pass http://127.0.0.1:80; # Apache Status Page
# Comment the following 2 lines to make the Apache status page public
allow 127.0.0.1;
deny all;
}
}
These are the ports:
Apache non-SSL IP/port: 0.0.0.0:80
Apache SSL port: 0.0.0.0:443
These are Logs:
2022/11/02 16:52:42 [emerg] 20632#20632: bind() to [::]:80 failed (98: Address already in use)
2022/11/02 16:52:42 [emerg] 20632#20632: bind() to [::]:443 failed (98: Address already in use)
I already tried to kill the processes listening to the same port and I get this error:
400 Bad Request request header or cookie too large
or my site stops working
I hope you can help me.