Apache 強迫 HTTP 導向 HTTPS 設定

$ yum install mod_ssl
$ vi /etc/httpd/conf.d/virtual_hosts.conf
NameVirtualHost *:80

        ServerName mysite.com
        SSLProxyEngine On
        RequestHeader set Front-End-Https "On"
        CacheDisable *
        ProxyPass /myapp https://tomcat-host:8443/myapp
        ProxyPassReverse /myapp https://tomcat-host:8443/myapp
        RedirectMatch ^/$ http://mysite.com/myapp

創作者介紹
創作者 周宇若 的頭像
周宇若

宇若彎彎

周宇若 發表在 痞客邦 留言(0) 人氣()