Carlo
Carlo

Reputation: 1194

Apache2 - Install several certificates for different domains without virtualhosts

I have an application written in Symfony2 which basically is a website builder. There are many domains pointing to the server IP, the php app inspects the request and displays the contents associated to that domain.

Is there a way to install ssl certificates on Apache for every domain, every domain should have its own certificate, whithout having any Virtuahost?

Apache is configured to answer to every request on port 80 and 443

Upvotes: 1

Views: 108

Answers (1)

jeffatrackaid
jeffatrackaid

Reputation: 346

Apache permits only 1 certificate per configured host.

So to achieve your goals, you will either need to use a multidomain certificate and include all domain in that certificate. By default, most vendors limit you to 100 domains per certificate. Note that www.domain.com and domain.com count as 2 different domains for the purpose of multi-domain certificates.

https://wiki.apache.org/httpd/UnderstandingMultiUseSSLCertificates

Otherwise, you will need to configure Vhosts for each domain. Depending on your OS, you may be able to use SNI with Apache so you don't need unique IPs for each domain.

https://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI

Upvotes: 2

Related Questions