GNU/Linux >> Belajar Linux >  >> Cent OS

Port yang digunakan oleh CentOS Web Panel

Port utama untuk mengakses CentOS Web Panel adalah 2030 dan 2031. Akhir-akhir ini, CentOS Web Panel juga menggunakan port 2086/2087 dan 2082/2083 (mirip dengan WHM). Untuk meringkas:

Antarmuka Panel Admin Web CentOS 30 atau 2086
Antarmuka aman Panel Admin Web CentOS 2031 atau 2087
Antarmuka Panel Pengguna Web CentOS 2082
Antarmuka aman Panel Pengguna Web CentOS 2083

Port ini dikonfigurasi dalam file /usr/local/cwpsrv/conf/cwpsrv.conf . Anda dapat memeriksa file ini melalui baris perintah dengan utilitas seperti nano, atau melalui Manajer File Panel Web CentOS. Isi cwpsrv.conf filenya adalah:

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;
}

Untuk mengalihkan port tidak aman ke port aman tambahkan baris berikut ke file /usr/local/apache/htdocs/.htaccess

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

CentOS Web Panel menggunakan port standar untuk layanan seperti server email, SSH, dll. :

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

Artikel KB terkait: Cara menginstal editor nano dengan yum


Cent OS
  1. Cara Memasang Panel Web CentOS di CentOS 6

  2. Instal Softaculous di CentOS Web Panel

  3. Buat/pulihkan cadangan di Panel Web CentOS

  1. Cara Memasang Panel Web CentOS di CentOS 8

  2. Buat domain addon di CentOS Web Panel

  3. Info &konfigurasi PHP di Panel Web CentOS

  1. Ubah kata sandi root di CentOS Web Panel

  2. Cara bekerja dengan Manajer File Panel Web CentOS

  3. Port yang digunakan oleh CentOS Web Panel