Skip to main content

SSL Inconsistent server configuration [ Error: SSL_ERROR_RX_RECORD_TOO_LONG in CWP ]

I have two dedicated ip(s) on my CWP server, one is for shared and another is still alive . I have done Lets Encrypt successfully & there is no warning from any web-browser but SSL Labs ( showing "SSL Inconsistent server configuration" and  I am checking my server that it showing "[ Error: SSL_ERROR_RX_RECORD_TOO_LONG in CWP ]" .

The Solution is simple .
1.Goto the templates directory and change it to as per your needs or use <VirtualHost *:PORT_REPLACE> on apache.conf , apache_ssl.conf
# cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/conf_templates/
# ll
total 24
-rw-r--r-- 1 root root  799 Aug 28  2018 apache.conf
-rw-r--r-- 1 root root 1142 Aug 28  2018 apache_ssl.conf
-rw-r--r-- 1 root root  127 Oct 20  2017 named_conf.conf
-rw-r--r-- 1 root root  707 Jun 27  2018 named_new_dns_zone.conf
-rw-r--r-- 1 root root 1198 Jan 15 03:52 nginx_proxy_vhost.conf
-rw-r--r-- 1 root root 1732 Jan 15 03:52 nginx_proxy_vhost_ssl.conf

Use <VirtualHost *:%apache_port%> on default.stpl , default.tpl
# cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/
# ll
total 8
-rw-r--r-- 1 root root 1349 Mar  1 10:38 default.stpl
-rw-r--r-- 1 root root 1184 Mar  1 10:38 default.tpl
drwxr-xr-x 2 root root   45 Dec  4 14:48 php-fpm
drwxr-xr-x 2 root root   45 Dec  4 14:48 proxy 
Use  <VirtualHost *:443>
 # vi /usr/local/apache/conf.d/hostname-ssl.conf
Rebuild your all virtual host and replace the shared IP with * (Asterisk)
and finally Update cwp-webserver if necessary
# yum update cwp-httpd --enablerepo=cwp 


Most Popular

CWP DNS Part 1 : How to Configure DNS properly for CentOS WebPanel on CentOS 7.6

After hosting my parent domain on CWP7.admin, I am getting dns error and i'm not able access my server using my server FQDN but i can access using my server IP.
So what can i do for that problem ?

Yes, you have to fix the error .

Environment Details:
Distro Name: CentOS Linux release 7.6.1810 (Core)
CentOS-Web Panel version: CWP7.admin
CWP version:
WebServer: Apache Only

1.Change Hostname Permanently:
# hostnamectl set-hostname hostnamectl Static hostname: Icon name: computer-vm Chassis: vm Machine ID: 7400071490ea4f7d931374824ad4b52c Boot ID: 6e1f2d76495d4b318c25c4a1195aa130 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-862.14.4.el7.x86_64 Architecture: x86-64 It also writes this information to the /etc/hostname file as well.
# cat /etc/hostname host.d…

CWP: How to Configure Let's Encrypt SSL Certificate for your server Hostname/FQDN on CWP7.admin

I wrote a blog on regarding Let's Encrypt SSL Certificate for CentOS Web Panel when "Letsencrypt Manager"  option was exist under Apache Settings >> Letsencrypt Manager >> Install Letsencrypt .

At Present CWP Team has been removed "Letsencrypt Manager"  that's why it will not renew any cert automatic . They made Auto SSL by default but Auto SSL grade is B and I'm not satisfied with Auto SSL.

Previous Article Link Install Letsencrypt SSL Certificate for your Server Hostname/FQDN, 100% Working 

N.B: I am using the below cipherlist

So now I am writing this solution again for all of guys and I hope that it will be 100% working again on your CentOS-Webpanel as mine .

Environment Details:
CPU Model: Intel(R) Xeon(R) CPU X3440 @ 2.53GHz
CPU Details: 2 Core (2527 MHz)
Distro Name: Ce…