[Sussex] Apache + SSL + virtual host

Diego Moore diego.moore at gmail.com
Wed May 25 08:25:16 UTC 2005


On 5/25/05, Ronan Chilvers <ronan at thelittledot.com> wrote:
> 
> You can, you just can't have more than one SSL site.  So
> 
> NameVirtualHost *:80
> NameVirtualHost *:443
> 
> <VirtualHost *:80>
>         ServerName www.site1.com
>         Blah
> </VirtualHost>
> 
> <VirtualHost *:80>
>         ServerName www.site2.com
>         Blah
> </VirtualHost>
> 
> <VirtualHost *:443>
>         ServerName secure.site3.com
>         Blah
> </VirtualHost>

This is now starting to make sense...

On this server a php script redirects you to https://www.example.com/

Base on the above, would I have to run the 3 sites (example.com,
https://example.com and dev.example.com) as VritualHosts?

Can I not have example.com as the default site and add https and dev
as VirtualHosts?

DM




More information about the Sussex mailing list