ssl_error_rx_record_too_long

“Error code: ssl_error_rx_record_too_long” for Apache SSL in CentOS 5.5

I have recently configured apache httpd with mod_ssl in my freshly installed CentOS5.5 . There is no problem with http://webserver.se.cuhk.edu.hk but I when tried to access https://webserver.se.cuhk.edu.hk and then I keep getting this Error code:

Secure Connection Failed
…..
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)

However, if I access with http://webserver.se.cuhk.edu.hk:443 , that can return the website content correctly .

Eventually , it’s found that there is nothing wrong with /etc/httpd/conf.d/ssl.conf , but problem actually occurs in /etc/httpd/conf/httpd.conf :

< NameVirtualHost {webserver IP} >
< VirtualHost {webserver IP} >
…………

I should deliberately specify 80 as the port for the virtual hosts as follows :

< NameVirtualHost {webserver IP}:80 >
< VirtualHost {webserver IP}:80 >
……..

You may also like...