Hope someone here can help me out.....
1) I need to configure several websites on a single box using Apache where each virtual domain may need have their own certificates and SSL connection. Can this be done somehow ?
I know I can have multiple "virtual domains" configured -- but only ONE will be able to use the SSL/port443 !
Is there any way/technique/best-practice to "multiplex" this SSL connection ;))
2) Can each virtual domain -- redirect JSP/servlet "application-server" requests to different application servers on the backend ? Maybe -- for example -- tomcat4:8080, jboss:8383, tomcat5:8888. I think the mod_jk configurations can be specified/unique for each virtual domain level. Should be OK I think.... but I've never dealt with these kind of more advanced Apache configurations and want to minimize/head-off any problems by doing some research first;
** I don't want to waste days trying to find the best version of Apache and mod_jk. Any suggestions ?
3) Do I need multiple machines, multiple lines, multiple instances of apache, MOD_PROXY, MOD_REWRITE ?? What I'm asking for is fairly standard I think -- but most documentation just skims the surface of these topics or skirt the issues focusing on very "vanilla" examples.
I've looked at: Q_20873192 (among others posts) and the url's suggested by this solution don't provide any clear/concise recommendations or best-practice and suggestions about how these type of "service provider" configurations/requirements are achieved in practice.
Hope to hear from someone soon.....
If you pick one of the certificates to use all the time, users who are trying to reach one of the other virtual domains are going to see that "certificate does not match domain name" message pop up in their browser
So, the best solution is to set up multiple Apache SSL servers on different ports, and then have a (non SSL, regular http) redirect page that looks at the URL being requested by the user and redirects to the appropriate https:// URL (with the correct port number) on the server.