This is definately impossible, you cannot reach different servers (different IPs) with the same domain name.
You only can configure one PC as (public) server, which handles all requests coming in for mydomain.com, and then use "Reverse Proxys" for the different URLs / folders for the other servers. Technical this means, that only one server can actually be reached (mydomain.com), but this server will retrieve the contents of (for example) http://mydomain.com/app1
from Server 2 and pass it thru to the client. But Server 2 cannot be reached directly. Later on this "looks like" as different servers are accessed directly, but this is only virtual - only one server interacts with the client.
Bobbix wrote:I've already attempted to configure reverse proxy googling but for example now i reach /joomla site but without the correct css and others elemets.
If you are mapping different folder names (for example you map /app1 to /application1 on Server 2), there can happen very nasty things and you have to overcome lots of problems. Here is a very good and complete tutorial, which shows and explains all difficulties, that may occur when running Reverse Proxies:http://www.apachetutor.org/admin/reverseproxies
P.S.: I personally recommend ALWAYS to use VirtualHosts and to map / on /, this works in most cases "out of the box" with the basic configuration. To do so, you need two VIrtualHosts for each application (like joomla), one "external" VirtualHost and one "internal" VirtualHost. I will give you an example for Joomla:
a) in Xampp Apache you have to define a VirtualHost which is assigned to this Server, for example joomla.mydomain.com. You need a second VirtualHost, now on Server1 (which can be reached only internally), lets call it joomla.server1. You have to assign 192.168.1.41 to joomla.server1 in the Hosts files of your PCs (at least in the Xampp Server), whereas joomla.mydomain.com have to be a public Domain (ask your provider) which yields to you Routers WAN IP.
On Server1 (where Joomla actually is installed) create a VirtualHost and assign DocumentRoot to the joomla installation:
DocumentRoot /www/htdocs/joomla <== this is only an example, replace by the real Joomla Path
You probably have to install Joomla after to joomla.server1 or reconfigure an existing installation (in order to use joomla.server1 as Domain)
On Xampp you define the external VirtualHost and install a ReverseProxy to joomla.server1:
ProxyPass / http://joomla.server1/
ProxyPassReverse / http://joomla.server1/
Thats all. If Joomla runs correctly under http://joomla.server1/
, it *should* run now via http://joomla.mydomain.com/
as well (especially from outside).