Topic: [SOLVED} WHM Apache Status issue after customizing apache port in cP

Hello,
  If you are using the Nginx server as a front end for the cPanel server then there will be an issue with apache status ,  which won't show in cPanel.  You need to edit the nginx configuration from whm -> Plugins -> cPanel Nginx   and add the following lines before vhost.conf .
==============================================

        server {
                error_log  logs/vhost-error_log warn;
                listen    80;
                location /whm-server-status {
                access_log /usr/local/apache/logs/access_log;
                proxy_pass http://127.0.0.1:8888/whm-server-status;
                proxy_set_header   Host   $host;
                proxy_set_header   X-Real-IP  $remote_addr;
                proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                }
        }

=======================================
After that restart nginx server . This will fix the issues.

Please see a sample nginx.conf below after editing the configuration.
------------------------------------------------------------------------------------------------------------------------------------------------
# cPanel Nginx Master configuration
user  nobody;
error_log  logs/error.log;
#Number of worker you need
worker_processes  5;
# How many connections a worker can handle maximum.
events {
    worker_connections  1024;
}
http {
        include    mime.types;
        default_type  application/octet-stream;
        sendfile on;
        server_names_hash_max_size 5000;
        server_names_hash_bucket_size 128;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout  0;
        gzip on;
        gzip_min_length  1100;
        gzip_buffers  4 32k;
        gzip_types    text/plain  application/x-javascript text/xml text/css;
        ignore_invalid_headers on;
        client_header_timeout  3m;
        client_body_timeout 3m;
        send_timeout     3m;
               server {
                error_log  logs/vhost-error_log warn;
                listen    80;
                location /whm-server-status {
                access_log /usr/local/apache/logs/access_log;
                proxy_pass http://127.0.0.1:8888/whm-server-status;
                proxy_set_header   Host   $host;
                proxy_set_header   X-Real-IP  $remote_addr;
                proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                }
        }
        include "/usr/local/nginx/conf/vhost.conf";
        include "/etc/cpnginx/cpanelproxy.conf";
}

--------------------------------------------------------------------------------------------------------------------

Syslint Technologies | 24x7 Server Management | Outsourced Support | Software Development - (0091) 471-3273-211