On my server I have this apache config file:
< VirtualHost *:80 >
ServerAdmin xxxx
DocumentRoot /www/a/b/c
< Directory /www/a/b/c > other config data < /Directory>
All the work is done by the application inside /www/a/b/c It accepts all domains that are routed to this apache server and the application detects the domain and serves different content bases on the domain.
Whit this i do not need to reconfigure the apache when new domain is added to to website. Just the user logs to the site registers new domain and fills the cms. Also the adds the domain name in his DNS.
The site can receive subdomains and also different domains.
Example all this domains points to the IP of the server:
domain1.com
domain2.com
maindomain.com
subdomain.maindomain.com
That works fine.
What I need now is for every domain for some pages to have SSL.
I will have certificate files for all domains. (can I have several cert files on one apache and one IP?)
Can I configure the apaceh to read them dynamically in some kind of if statement or I must configure for each domain separate VirtualHost ?
Regards