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




Reply via email to