VirtualHost: * vs. _default_

Sreekandh Balakrishnan gnuyoga at gmail.com
Wed Jul 3 07:44:20 UTC 2013



On Wednesday, 3 July 2013 at 12:18 PM, Dotan Cohen wrote:

> When configuring SSL in Apache2, what is the difference between these two lines:
> <VirtualHost *:443>
> <VirtualHost _default_:443>
> 
http://httpd.apache.org/docs/current/vhosts/examples.html#default
 
> 
> I've tried limited experimentation, but as I only have this cert for a
> live site I can't be experimenting too long! My end goal is to serve
> SSL for example.com (http://example.com) and for sub.example.com (http://sub.example.com), but setting two
> sites-enabled files with the following lines does not work:
> <VirtualHost example.com:443 (http://example.com:443)>
> <VirtualHost sub.example.com:443 (http://sub.example.com:443)>
> 
> 

you need a SSL certificate which support wild card. 
http://en.wikipedia.org/wiki/Wildcard_certificate

-S

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20130703/4922a9ac/attachment.html>


More information about the ubuntu-server mailing list