我已经开发了一个需要SSL客户端证书的Java应用程序,并且在Apache 2.2和mod_jk的临时环境中工作的很好。 在生产中,configuration不使用mod_jk,而使用mod_proxy_ajp。 我正在寻找一个Apacheconfiguration示例,该示例将ssl和mod_proxy_ajpconfiguration为将SSL客户端证书发送到Java应用程序服务器(使用ajp协议进行侦听)。 非常感谢
使用mod_proxy_ajp ,你需要设置RequestHeader指令来传递SSL参数。 关于在<Location>或<VirtualHost>部分设置指令的例子,请参阅Apache 文档 。
我安装了一个Apache Web服务器,我发现mod_ajp转发客户端证书没有明确的configuration。 我的apacheconfiguration是sslngine on SSLOptions + StdEnvVars + ExportCertData ProxyRequests关SSLVerifyClient optional_no_ca从所有ProxyPass / sportellosociale允许ajp:// localhost:8009 / sportellosociale ProxyPassReverse / sportellosociale ajp:// localhost:8009 / sportellosociale *
我省略了SSLCertificate指令
我这样configuration(虽然这个configuration打破了我创build的任何额外的mod_rewrite规则…我不知道为什么):
<Location /> ProxyPass ajp://localhost:8009/ ProxyPassReverse ajp://localhost:8009/ </Location> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Redirect permanent / https://mysite.com/myapp?user=