2017-12-14 4 views
0

에 http로 작동합니다 나는를 사용하는 경우 그러나, // 을 작업 표시 SSL 인증서 인 경우 관리 패널 하위 도메인은 아니지만 https : //를 사용하여 기본 사이트로 리디렉션됩니다. 또한 이상한 점은 내 API도 안전하지 않은 것으로 들어오고 있다는 것입니다.사이트는 https로 리디렉션하지만이 사이트는 http로 덧붙일 때 그에서 관리자 패널 펑키</p> <p>을 역할이 아파치

SSL 인증서가 설치된 방식과 관련이 있다고 생각하지만, apache2에 대한 지식이 제한되어 있습니다.

여기에서 관리자 패널의 파일 사이트의 사용 :

ServerAdmin [email protected] 
ServerName (admin panel url) 
ServerAlias (admin panel url) 
DocumentRoot (location of admin panel files) 

SSLEngine on 
SSLCertificateFile (location of ssl crt file) 
SSLCertificateKeyFile (location of ssl key file) 
SSLCertificateChainFile (location of ssl bundle crt file) 

답변

1

내가 내 HTTPS에 대한 문제를 파악 : // HTTP 대 : // 문제를 관리자 패널. 내 가상 호스트가/sites-enabled/

의 관리자 패널 파일에 올바르게 설정되지 않은 것으로 나타났습니다. 관리자 패널의 가상 호스트에 대한 포트의 이름을 변경하고 사용자가 로그인 할 때 새로운 가상 호스트를 만들었습니다 보안 사이트로 이동하여 강제로 사이트로 이동하지 마십시오.

는 이제 보이는 같은 :

<VirtualHost *:80> 
    ServerName (admin panel url) 
    ServerAlias (admin panel url) 
    Redirect permanent/https://(admin panel url) 
</VirtualHost> 

<VirtualHost *:443> 
    ServerAdmin [email protected] 
    ServerName (admin panel url) 
    ServerAlias (admin panel url) 
    DocumentRoot (directory of admin panel files) 

    SSLEngine on 
    SSLCertificateFile (location of crt file) 
    SSLCertificateKeyFile (location of key file) 
    SSLCertificateChainFile (location of bundle crt file) 
</VirtualHost>