Apache Httpd作为SSL终止代理

时间:2013-02-07 16:50:30

标签: ssl https apache

我想将我的Httpd设置为嵌入式Jetty的SSL终止代理。

我发现了这个article,但它不能用于我的配置。通过我的httpd-vhosts.conf中的以下内容,我可以http://mysite:9023访问http://app.mysite。但是,我无法通过http://mysite:9023访问https://app.mysite

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName app.mysite
    ServerAlias www.app.mysite
    ProxyPreserveHost On
    <Proxy *>
        AddDefaultCharset Off
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://mysite:9023/
    ProxyPassReverse / http://mysite:9023/
</VirtualHost>

NameVirtualHost *:443
<VirtualHost *:443>
    ServerName app.mysite
    ServerAlias www.app.mysite
    ProxyPreserveHost On
    SSLEngine On
    SSLCertificateFile    "C:\apache\httpd\conf\server.crt"
    SSLCertificateKeyFile "C:\apache\httpd\conf\server.key"
    <Location />
        SSLRequireSSL
    </Location>
   ProxyPass / http://mysite:9023/
   ProxyPassReverse / http://mysite:9023/
</VirtualHost>

0 个答案:

没有答案