Can I use a single SSLCertificateFile for all my VirtualHosts instead of creating one of it for each VirtualHost?
- by user65567
I have many Apache VirtualHosts for each of which I use a dedicated SSLCertificateFile.
This is an configuration example of a VirtualHost:
<VirtualHost *:443>
ServerName subdomain.domain.localhost
DocumentRoot "/Users/<my_user_name>/Sites/users/public"
RackEnv development
<Directory "/Users/<my_user_name>/Sites/users/publ`enter code here`ic">
Order allow,deny
Allow from all
</Directory>
# SSL Configuration
SSLEngine on
#Self Signed certificates
SSLCertificateFile /private/etc/apache2/ssl/server.crt
SSLCertificateKeyFile /private/etc/apache2/ssl/server.key
SSLCertificateChainFile /private/etc/apache2/ssl/ca.crt
</VirtualHost>
Since I am maintaining more Ruby on Rails applications using Passenger Preference Pane, this is a part of the apache2 httpd.conf file:
<IfModule passenger_module>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName _default_
</VirtualHost>
Include /private/etc/apache2/passenger_pane_vhosts/*.conf
</IfModule>
Can I use a single SSLCertificateFile for all my VirtualHosts (I have heard of wildcards) instead of creating one of it for each VirtualHost? If so, how can I change the files listed above?