Score:0

Why have a error 502 Bad Gateway Nginx, I have installed Engintron on my WHM

pe flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.