Apache는 개인 IP를 제외한 모든 트래픽을 HTTP로 리디렉션합니다.

Apache는 개인 IP를 제외한 모든 트래픽을 HTTP로 리디렉션합니다.

개인 IP(10.1)로 들어오는 트래픽을 제외하고 들어오는 모든 트래픽을 HTTP로 리디렉션하고 싶습니다...*). 다음 구성을 사용하면 외부 트래픽이 HTTP로 리디렉션되지 않습니다.

개인 IP용 VirtualHost

<VirtualHost 10.191.120.232:80>
    ServerName webservice.local
    ...
</VirtualHost>

모든 트래픽을 HTTP로 리디렉션하는 기본 VirtualHost

<VirtualHost _default_:80>
    ServerAdmin webmaster@localhost

    RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

관련 정보