I know that can be done with the hosts file and that it should be done with it but for some reason I'd really have to make Apache act this way.
The problem is: the hosts are already in the DNS which I can't modify at all but they lead to my network's web server.
I'd like to receive requests from that IP, and simply shoot them to another IP. Is there any way of doing so with Apache2?
Thanks a lot!
Sounds like you are looking for a reverse proxy. In the vhost config add:
foo.example.com
is where you want to "shoot" the requests.