I have several IP's which I am trying to configure in Apache2. I have tried searching around but it seems I may be asking for too much.
I want to route every direct request for each IP (e.g. http://155.155.155.100) to a dedicated DocumentRoot (e.g. /www/155.155.155.00/).
While domains which resolve to the same IP (155.155.155.100) will have a separate DocumentRoot. So far, Apache has no problems routing IP's, However it doesnt like sharing them between domains.
My setup so far (Does not work, Both IP and domain route to /www/155.155.155.101 - they are not separate):
NameVirtualHost 155.155.155.100
NameVirtualHost 155.155.155.101
NameVirtualHost 155.155.155.102
NameVirtualHost 155.155.155.103
<VirtualHost 155.155.155.101>
DocumentRoot /www/155.155.155.101
</VirtualHost>
<VirtualHost 155.155.155.101>
ServerName www.domain1.com
ServerAlias www.domain1.com
DocumentRoot /www/domain1.com
</VirtualHost>
I'd appreciate help!