You need to setup apache proxy on one of your PCs and forward requests based on hostname. See apache docs.
I have 2 computers which are both running Apache2 under FreeBSD
Now i've forwarded port 80 to the first PC (Internal IP: 192.168.1.30), so when you type http://server.djuri.nl (port 80) (pointed to my ip) you reach the first PC.
Now I have another PC (testserver with test versions like PHP5/MySQL5, Internal IP: 192.168.1.31), and i want it to be reachable under http://dev.djuri.nl (port 80) (also pointed to my ip).
Is it possible to do that, and if so, how to do it?
You need to setup apache proxy on one of your PCs and forward requests based on hostname. See apache docs.