GNU/Linux >> LINUX-Kenntnisse >  >> Cent OS

Von CentOS Web Panel verwendete Ports

Die wichtigsten Ports für den Zugriff auf das CentOS-Webpanel sind 2030 und 2031. In letzter Zeit verwendet das CentOS-Webpanel auch die Ports 2086/2087 und 2082/2083 (ähnlich wie WHM). Zusammenfassend:

CentOS-Web-Admin-Panel-Oberfläche 2030 oder 2086
Sichere Schnittstelle des CentOS-Web-Admin-Panels 2031 oder 2087
CentOS Web-Benutzeroberfläche 2082
Sichere Schnittstelle des CentOS Web User Panel 2083

Diese Ports werden in der Datei /usr/local/cwpsrv/conf/cwpsrv.conf konfiguriert. Sie können diese Datei über die Befehlszeile mit einem Dienstprogramm wie nano oder über den CentOS Web Panel File Manager überprüfen. Der Inhalt der cwpsrv.conf Datei ist:

worker_processes  2;
events {
    worker_connections  2048;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server_tokens off;
    client_max_body_size 128M;

    access_log  logs/access_log;
 
    server {
        listen       2030;
        listen       2086;
        server_name  localhost;

        location / {
            root   /usr/local/cwpsrv/htdocs/admin;
            index  index.html index.htm index.php;
            ModSecurityEnabled off;
            ModSecurityConfig /usr/local/cwpsrv/conf/security/conf/global_rules.conf;

            # Includes
            include /usr/local/cwpsrv/conf/cwp_rewrite.conf;
            include /usr/local/cwpsrv/conf/cwp_services.conf;
            include /usr/local/cwpsrv/conf/include/*.conf;
            include /usr/local/cwpsrv/conf/cwp_panels.conf;

            location ~ \.php$ {
                try_files $uri =404;
                root /usr/local/cwpsrv/htdocs/admin;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_read_timeout 600;
                fastcgi_pass    unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock;
                fastcgi_index   index.php;
                fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
                include                 fastcgi_params;
            }
        }
    }

    server {
        listen       2031;
        listen       2087;
        server_name  localhost;

        ssl                 on;
        ssl_session_timeout 90m;
        ssl_certificate     /etc/pki/tls/certs/hostname.crt;
        ssl_certificate_key /etc/pki/tls/private/hostname.key;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers   on;
	error_page 497  https://$host:2087$request_uri;

        location / {
            root   /usr/local/cwpsrv/htdocs/admin;
            index  index.html index.htm index.php;
            ModSecurityEnabled off;
            ModSecurityConfig /usr/local/cwpsrv/conf/security/conf/global_rules.conf;

            # Includes
            include /usr/local/cwpsrv/conf/cwp_rewrite.conf;
            include /usr/local/cwpsrv/conf/cwp_services.conf;
            include /usr/local/cwpsrv/conf/include/*.conf;
            include /usr/local/cwpsrv/conf/cwp_panels.conf;

            location ~ \.php$ {
                try_files $uri =404;
                root /usr/local/cwpsrv/htdocs/admin;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_read_timeout 600;
                fastcgi_pass    unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock;
                fastcgi_index   index.php;
                fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
                include                 fastcgi_params;
            }
        }
    }
    include /usr/local/cwpsrv/conf.d/*.conf;
}

Um die nicht sicheren Ports auf sichere Ports umzuleiten, fügen Sie die folgenden Zeilen zur Datei /usr/local/apache/htdocs/.htaccess hinzu

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

CentOS Web Panel verwendet die Standardports für Dienste wie E-Mail-Server, SSH usw. :

SSH 22
FTP 21
SMTP 25/26
Sicheres SMTP 465
POP3 110
Sicheres POP3 995
MySQL 3306
IMAP 143
Sicheres IMAP 993
HTTP/HTTPS 80/443

Verwandter KB-Artikel: So installieren Sie den Nano-Editor mit yum


Cent OS
  1. So arbeiten Sie mit CentOS Web Panel File Manager

  2. Von CentOS Web Panel verwendete Ports

  3. Kann ich CentOS Web Panel deinstallieren?

  4. So installieren Sie das CentOS-Webpanel

  5. Überprüfung des CentOS-Webpanels – Einführung

So installieren und konfigurieren Sie CWP (CentOS Web Panel) unter CentOS 7

CentOS Web Panel:So installieren Sie es unter CentOS 7 oder 8 Linux

Wie füge ich eine Domäne im Centos-Webpanel hinzu?

So installieren Sie CentOS Web Panel unter CentOS 7.x

So installieren Sie das Control Web Panel unter CentOS 8

So installieren Sie das CentOS-Webpanel unter CentOS 7