Beberapa error yang muncul dari website sewaktu dibuka di Firefox, Chrome dan curl

Firefox : SSL_ERROR_RX_RECORD_TOO_LONG
Google Chrome : sent an invalid response.
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

di log error nginx (mode debug)

2019/03/25 17:00:38 [info] 12305#12305: *7 client sent invalid method while reading client request line, client: 192.168.2.1, server: domain.com, request: “����(�Q��ʛ:f�pq .N�Xm�.<,|w R�������Y�W�u���:h�H��)W��;�"�+�/̨̩�,�0�" 2019/03/25 17:00:39 [info] 12305#12305: *7 recv() failed (104: Connection reset by peer) while reading client request line, client: 192.168.2.1, server: domain.com, request: "����(�Q��ʛ:f�pq .N�Xm�.<,|w R�������Y�W�u���:h�H��)W��;�"�+�/̨̩�,�0�"

di server block seperti di bawah ini

# /etc/nginx/conf.d/server.jaranguda.com.conf
server {
   listen 443 default_server;
   server_name server.jaranguda.com;
   root /var/www/server.jaranguda.com;
   index index.php index.htm index.html;

solusinya

# /etc/nginx/conf.d/server.jaranguda.com.conf
server {
   listen 443 ssl default_server;
   server_name server.jaranguda.com;
   root /var/www/server.jaranguda.com;
   index index.php index.htm index.html;

kurang SSL dibelakang 443.

Leave a comment

Your email address will not be published. Required fields are marked *