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 (https://ssllabs.com/ssltest/) 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 

Comments