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?
> 
> There is no correct one. Both are correct. I want both.

I don't understand the problem you are trying to solve. 

FWIIW from my past experience having identical virtual host configurations, apache services the one it first/last loads and ignores the rest. You just have to test this, but I would not want to use such a thing in production.





---------------------------------------------------------------------
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