Somebody can clarify the logics of Apache 2.2? In example: I have 5 websites working with the same ip. Two of them are configured with SSL, I have inside /etc/apache2/ports.conf: Code: NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> Listen 443 </IfModule> and then in /etc/apache2/sites-available I have the Virtualhosts: Code: <VirtualHost 18.104.22.168:80> ServerName website1.com .... </VirtualHost> <VirtualHost 22.214.171.124:80> ServerName website2.com .... </VirtualHost> <VirtualHost 126.96.36.199:80> ServerName website3.com .... </VirtualHost> <VirtualHost 188.8.131.52:443> ServerName website4.com .... </VirtualHost> <VirtualHost 184.108.40.206:443> ServerName website5.com .... </VirtualHost> the problem is: when I load in the browser https://website1.com it loads https://website4.com. How can I configure VirtualHosts to avoid this behavior? How it works the precedence priority of VirtualHosts? What is the logics? How can I know which VirtualHost will be finally loaded in first place? Do you know some tutorial explaining this?