RE: config - how are multiple VirtualHost directives for the same address handled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> How does apache httpd 2.4 handle multiple VirtualHost directives for the
> same address ?
> 
> For example:
> 
> <VirtualHost *:443>
>   SSLCertificateFile "${SRVROOT}/conf/server.crt"
>    # ...
> </VirtualHost>
> 
> <VirtualHost *:443>
>   DocumentRoot "/www/docs/host.example.com"
>   # ...
> </VirtualHost>
> 
> Are the settings merged, as if written like this:
> 
> <VirtualHost *:443>
>   SSLCertificateFile "${SRVROOT}/conf/server.crt"
>    # ...
>   DocumentRoot "/www/docs/host.example.com"
>   # ...
> </VirtualHost>

But you are using ServerName and ServerAlias to load the correct one not?


> 
> Or is one directive block used and the other ignored (which one)?
> 
> The reason I ask is that I have general SSL related settings in one file
> ( ssl.conf ) and the content related settings in another ( content.conf
> ) and both config files are included in the main config file.
> 

You can have general ssl stuff in different (global) config. There is already such file and just add these to the Virtualhost

SSLEngine on
SSLCertificateFile
SSLCertificateKeyFile
SSLCertificateChainFile



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux