My application server has two ways to call it. One via the WEB and one via SOAP XML calls. As you can see in my apache config file I have two PORT 80 entries, 1 for the website and one for the soap calls. Both with specific rewrite rules to lead the traffic in the right direction..
now im trying to get SSL in place. I made the first web entry identical to the non SSL one and it works perfect.
so I try and do the same for the SOAP XML one, and it blows up on me saying only 1 SSL entry can be made.
so I try to combine the rules, but it does not seem to like it.
How do i accomplish this? My assumption is 1 big SSL rule, maybe URL specific, like make a rewrite rule specific for www.mydomain.com and a rewrite rule specific for service.mydomain.com, both under the the same SSL entry.
Is that the way to do it? Does anyone know how to make a rule like that?
<VirtualHost X.X.X.X:80>
ServerName www.mydomain.com
DocumentRoot /opt/mydomain/www
ErrorLog /var/log/apache2/www_mydomain_error.log
CustomLog /var/log/apache2/www_mydomain_access.log combined
<Location />
Allow from all
</Location>
RewriteEngine On
RewriteRule ^/$ /client/index.html [R]
RewriteRule ^/index.*$ /client/index.html [R]
RewriteRule ^/sst$ /sst/index.html [R]
RewriteRule ^/sst/$ /sst/index.html [R]
RewriteRule ^/txadmin$ /txadmin/index.html [R]
RewriteRule ^/txadmin/$ /txadmin/index.html [R]
RewriteRule ^(.*)/$ $1/index.html [R]
RewriteRule ^/client/(.*)$ ajp://localhost:8009/client/$1 [P]
RewriteRule ^/sst/(.*)$ ajp://localhost:8009/sst/$1 [P]
RewriteRule ^/txadmin/(.*)$ ajp://localhost:8009/txadmin/$1 [P]
</VirtualHost>
<VirtualHost X.X.X.X:443>
ServerName www.mydomain.com
DocumentRoot /opt/mydomain/www
ErrorLog /var/log/apache2/www_mydomain_ssl_error.log
CustomLog /var/log/apache2/www_mydomain_ssl_access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/all.mydomain.com.crt
SSLCertificateKeyFile /etc/ssl/certs/all.mydomain.com.key
<Location />
Allow from all
</Location>
RewriteEngine On
RewriteRule ^/$ /client/index.html [R]
RewriteRule ^/index.*$ /client/index.html [R]
RewriteRule ^/sst$ /sst/index.html [R]
RewriteRule ^/sst/$ /sst/index.html [R]
RewriteRule ^/txadmin$ /txadmin/index.html [R]
RewriteRule ^/txadmin/$ /txadmin/index.html [R]
RewriteRule ^(.*)/$ $1/index.html [R]
RewriteRule ^/client/(.*)$ ajp://localhost:8009/client/$1 [P]
RewriteRule ^/sst/(.*)$ ajp://localhost:8009/sst/$1 [P]
RewriteRule ^/txadmin/(.*)$ ajp://localhost:8009/txadmin/$1 [P]
</VirtualHost>
<VirtualHost X.X.X.X:80>
ServerName service.mydomain.com
DocumentRoot /opt/mydomain/www
ErrorLog /var/log/apache2/service_mydomain_error.log
CustomLog /var/log/apache2/service_mydomain_access.log combined
<Location />
Allow from all
</Location>
RewriteEngine On
RewriteRule ^/taxcalc/(.*)$ ajp://localhost:8009/taxcalc/$1 [P]
RewriteRule ^/tx/(.*)$ ajp://localhost:8009/tx/$1 [P]
RewriteRule ^/txdocs/(.*)$ ajp://localhost:8009/txdocs/$1 [P]
</VirtualHost>