Apache 서버에서 HTTPS를 사용할 수 없습니다.

Apache 서버에서 HTTPS를 사용할 수 없습니다.

내 서버 www.tripmatcher,com의 경우 다음과 같은 문제가 있습니다.Apache httpd에서 내 이름 기반 가상 호스트가 SNI 지원 브라우저에서만 작동한다고 알려주는 이유는 무엇입니까(RFC 4366). 내 구성 파일은 /etc/apache2/sites-enabled/default-ssl.conf에 있으며 다음과 같습니다.

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerName tripmatcher.com
        RewriteEngine on
        RewriteCond %{HTTP_HOST} ^tripmatcher.com
        RewriteRule ^/(.*)$ http://www.tripmatcher.com/$1 [L,R=301]

        ServerAdmin [email protected]
        DocumentRoot /var/www/html
        <Directory "/var/www/html">
        AllowOverride All
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
       # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example # the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

<VirtualHost *:443>

ServerAdmin [email protected]

DocumentRoot /var/www/html
<Directory "/var/www/html">
        AllowOverride All
        </Directory>


ServerName tripmatcher.com

ErrorLog ${APACHE_LOG_DIR}/error.log

SSLEngine on

SSLCertificateFile /etc/ssl/tripmatcher.crt

SSLCertificateKeyFile /etc/ssl/tripmatcher.key

SSLCertificateChainFile /etc/ssl/tripmatcher.ca-bundle

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

제가 보기엔 이 정도면 괜찮은 것 같습니다. 누구든지 나에게 무엇이 잘못되었는지 지적해 줄 수 있습니까? 문제는 내가 갈 때다.https://www.tripmatcher.com, 일부 CSS가 누락되었지만 페이지가 로드됩니다. 그러나 로그인하고 이동하면 다음과 같이 말합니다.https://tripmatcher.com/matcher'요청한 URL /matcher를 이 서버에서 찾을 수 없습니다.'라는 메시지가 표시됩니다. 누군가 나에게 무엇이 잘못되었는지 설명해 주시겠습니까?

[Sun Dec 10 22:23:25.578086 2017] [ssl:warn] [pid 19647] AH02292: Init: 이름 기반 SSL 가상 호스트는 TLS 서버 이름 표시 지원(RFC 4366)이 있는 클라이언트에서만 작동합니다. [Sun Dec 10 22: 23:25.580546 2017] [mpm_prefork:notice] [pid 19647] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.20 OpenSSL/1.0.1f 구성됨 - 정상 작업 재개 [Sun 12월 10일 22일: 23:25.580590 2017] [core:notice] [pid 19647] AH00094: 명령줄: '/usr/sbin/apache2'

나는 로그에서 그것을 본다.

답변1

내 .htaccess의 상단을 간단히 변경하면 트릭이 수행됩니다.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.tripmatcher.com/index.php/$1 [R,L]
#RewriteRule

이 문제가 있는 다른 사람에게 도움이 되기를 바랍니다.

관련 정보