당신의 nginx HTTPS를 구성한 후, 위치는 상황이 발생할에 액세스 할 수 없습니다

클라우드에서 알리 인증서.

다음과 같이 Nginx의 구성은

server {
    listen  443;
    server_name  package.oeynet.com;
    root /server/wwwroot/package_v1/Public;
    ssl on;
    ssl_certificate   /server/certs/package.oeynet.com/214082784100471.pem;
    ssl_certificate_key  /server/certs/package.oeynet.com/214082784100471.key;
    ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { index index.html index.htm index.php l.php; # autoindex on; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } location ~* \.(png|jpeg|jpg|bmp|gif|ico|js|css|scss){ expires 3d; } } server { listen 80; server_name package.oeynet.com; rewrite ^(.*)$ https://$host$1 permanent; } 

그리고 80 개 포트의 점프가 어떤 과정에 액세스 할 수 없습니다 발견했다. 443 포트를보기도 상태를 듣고 발견.

마지막으로, 내 로컬 wget과 다운로드 페이지를 찾았지만, 네트워크 액세스 할 수없는 외부, 나는 확신이 유령 중 방화벽.
성공적인 방문, firewalld를 살펴 보자 다시 디버깅.

 
의 image.png
 
의 image.png


저자 : Godtoy의
링크 : HTTPS : //www.jianshu.com/p/b3d8b4145e8c의
출처 : 제인 책
저자가 보유 제인 책의 저작권은, 어떤 형태로도 복제되어, 승인을 얻기 위해 작성자에게 문의하고 소스를 표시하시기 바랍니다.

추천

출처www.cnblogs.com/gongxianjin/p/11266044.html