I have a few virtual machines with apache 2.4 installed, and the base setup made by the hosting provider. They specify the IP address in every virtual host configuration:
<VirtualHost 123.234.56.89:80>
ServerName ...
</VirtualHost>
For the web application I develop, I have virtual host configurations which are managed by an SCM system and symlinked into the Apache configuration. It would be very useful if I could use the same configuration on both my development machine and the production servers, and rather have:
<VirtualHost *:80>
ServerName ...
ServerAlias development.host.local
...
</VirtualHost>
However, it doesn't really work to mix virtual hosts with fixed and wildcard (*
) IP specifications.
So, my question is: Is there a performance reason to nail virtual hosts to fixed IP specifications?
Is this needed for SSL setups (which applies to some but not all of my sites)?
I use Debian and CentOS Linux, and Apache 2.2 and 2.4; my servers have 1 to 4 IP4 addresses.