I've developed a java application that need a ssl client certificate and in the staging environment with apache 2.2 and mod_jk it is working fine. In production the configuration is not using mod_jk but mod_proxy_ajp. I'm looking for an apache configuration example that configure ssl and mod_proxy_ajp for sending the ssl client certificate to the java application server (which listens with the ajp protocol). Thanks a lot
Asked
Active
Viewed 3,493 times
3 Answers
0
I setup an apache web server and I found that mod_ajp forwards the client certificate without explicit configuration. my apache configurations is
SSLEngine on
SSLOptions +StdEnvVars +ExportCertData
ProxyRequests Off
SSLVerifyClient optional_no_ca
<Proxy />
Allow from All
</Proxy>
ProxyPass /sportellosociale ajp://localhost:8009/sportellosociale
ProxyPassReverse /sportellosociale ajp://localhost:8009/sportellosociale*
I omitted the SSLCertificate directives
clonejo
- 103
0
Mine is configured like so (although this configuration breaks any additional mod_rewrite rules that I create... and i dont know why):
<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=
djangofan
- 4,230