SSL이 최대 허용 길이를 초과하는 레코드를 받았습니다. (오류 코드 : ssl_error_rx_record_too_long)
https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html#https-configuration 에있는 https 설정에 대한 공식 문서를 따랐습니다.
나는에서 제거해야 +CompatEnvVars
했다
SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
잘못된 명령이라고했기 때문입니다. 그래서 그것을 제거하고 손톱에 대한 지침을 따르면 오류가 발생합니다.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
SSL을 처음 사용합니다. 무엇이 잘못되었는지에 대한 조언이 있습니까?
방금이 문제가 발생했습니다. 나에게는 잘못된 코드가 포트 80에서 HTTPS로 리디렉션하려고 할 때 나타났습니다.
예 :
URL에서 포트 80을 제거하면 리디렉션이 작동합니다.
기본적으로 HTTPS는 포트 443을 통해 실행됩니다.
나는 사용했다
a2ensite default-ssl
그리고 그것은 매력처럼 작동했습니다.
예를 들어 phpmyadmin이 SSL / https를 사용하도록 강제하려면이 링크가 없으면이 문제가 발생합니다.
나는 똑같은 오류가 있었다. sites-enabled / 000-default-ssl에서 sites-available / default-ssl 파일로의 링크를 만드는 것을 잊었습니다.
> ln -s /etc/apache2/sites-available/default-ssl /etc/apache2/sites-enabled/000-default-ssl
이것은 서버가 SSL에 대해 올바르게 구성되지 않은 경우 Firefox에서 표시되는 결과 인 것 같습니다. Chrome, BTW는 일반적인 "ssl failed"코드를 제공했습니다.
서버가 HTTP 요청을 예상 할 때 브라우저가 SSL 핸드 셰이크를 전송합니다. 서버는 400 코드와 브라우저가 예상하는 핸드 셰이크 메시지보다 훨씬 큰 오류 메시지로 응답합니다. 따라서 FF 메시지.
여기의 응답에서 알 수 있듯이 SSL 구성을 손상시킬 수 있지만 서버 시작을 중지하거나 error.log에 힌트를 제공하지 않는 많은 것들이 있습니다.
내가 한 일은 마지막으로 올바른 답을 찾을 때까지 모든 답을 체계적으로 확인하는 것이 었습니다.
액세스 로그에있는 내용은 다음과 같습니다.
rfulton.actrix.co.nz:80 192.168.1.3 - - [09/Oct/2016:13:39:32 +1300] "\x16\x03\x01" 400 0 "-" "-"
rfulton.actrix.co.nz:80 192.168.1.3 - - [09/Oct/2016:13:39:46 +1300] "\x16\x03\x01" 400 0 "-" "-"
rfulton.actrix.co.nz:80 192.168.1.3 - - [09/Oct/2016:13:49:13 +1300] "\x16\x03\x01" 400 0 "-" "-"
이 오류는 SSL 모듈을 활성화했지만 (예 : a2enmod ssl 실행) 아직 SSL 사이트 항목을 활성화하지 않은 경우 (예 : a2ensite default-ssl을 실행하지 않은 경우) 발생합니다.
제 경우에는 다른 컴퓨터에서 SSL 구성을 복사했고 <VirtualHost wrong.ip.addr.here:443>
. IP를 원하는대로 변경하고 httpd를 다시 시작하고 사이트가 예상대로 SSL을 통해로드되었습니다.
제 경우에는 먼저 mod_ssl을 설치해야했습니다.
yum install mod_ssl
제 경우에는 Ubuntu 시스템, ports.conf에서
NameVirtualHost *:80
NameVirtualHost 192.168.1.79
Listen 80
그리고 내부에는
NameVirtualHost *:443
Listen 443
내가해야 할 일은 NameVirtualHost 192.168.1.79 줄을 제거하는 것뿐이었습니다. 아파치가 다시 시작되고 문제가 해결되었습니다.
My case is related to Greg B's -- Visual Studio creates two sites when SSL is enabled -- one for secure, and one for normal http requests. However Visual Studio chooses two ports at random, and depending on how you start the debugger you might be pointing towards the wrong page for the request type. Especially if you edit the URL but don't change the port number.
Seeing these posts jogged my memory.
I know this isn't APACHE related, but it is definitely a page that people with that error will find..
In my case I accidentally used SSL in the Virtualhost configuration for port 80, instead of 443.
I got the same error after enabling TLSv1.2 in webmin. Right after I enabled TLSv1.2 by accident thinking it was SSLv2, I was not able to log in from https://myipaddress:10000 like I did before. I found this link http://smallbusiness.chron.com/disable-ssl-webmin-miniserv-60053.html and it helped me because I was able to access webmin config file and I was able TLSv1.2
I go this error when I was trying to access a url using curl :
curl 'https://example.com:80/some/page'
The solution was to change https
to http
curl 'http://example.com:80/some/page'
If you are upgrading from an older version of apache2, make sure your apache sites-available conf files end in .conf and are enabled with a2ensite
'Development Tip' 카테고리의 다른 글
약속-약속을 강제로 취소 할 수 있습니까? (0) | 2020.11.10 |
---|---|
전자와 함께 sqlite3 모듈을 사용하는 방법은 무엇입니까? (0) | 2020.11.10 |
bash에서 fork 및 exec (0) | 2020.11.10 |
subclipse : 기본 SVN 클라이언트를로드 할 수 없습니다. (0) | 2020.11.10 |
String.Replace가 "전체 단어"를 누르는 방법 (0) | 2020.11.10 |