I have added 2 more IPs and PHP is not working on those domains. Looks bizarre. I must've done something wrong but cannot figure out what.
IPs: 111.111.111.111, 222.222.222.222 and 333.333.333.333
Domains: 1.example.com, 2.example.com, 3.example.com
NSLOOKUP confirms that domains are bind to IPs correctly
OS UBUNTU SERVER 12.04 on Virtual Machine (VPS) with one network interface
ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:0f:2a:4f
inet addr:111.111.111.111 Bcast:111.111.111.255 Mask:255.255.255.0
....
lo Link encap:...
/etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 111.111.111.111
netmask 255.255.255.0
gateway 111.111.111.1
/etc/rc.local - this is how I have 2 extra IPs added
ip address add 222.222.222.222 dev lo
ip address add 333.333.333.333 dev lo
exit 0
APACHE2 / 2.4.3
/path_to_install_dir/apache2/conf/extra/httpd-vhosts.conf
<VirtualHost 111.111.111.111>
DocumentRoot "/path/1.example.com/public_html/"
ServerName 1.example.com
AddType application/x-httpd-php .php
...
<VirtualHost 222.222.222.222>
DocumentRoot "/path/2.example.com/public_html/"
ServerName 3.example.com
AddType application/x-httpd-php .php
...
<VirtualHost 333.333.333.333>
DocumentRoot "/path/3.example.com/public_html/"
ServerName 3.example.com
AddType application/x-httpd-php .php
...
So now 1.example.com works correctly, 2.example.com and 3.example.com (on additional IPs) - "lost" PHP. I mean they're served by apache, but php is not working! And nothing in error.logs!
Lotsa configs, so thanks for pations, guys.