我想将我的 Httpd 设置为嵌入式 Jetty 的 SSL 终止代理。
我找到了这篇文章,但是,它不适用于我的配置。在我的 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>