The problem is that I have only one domain name on which 3 different products need to be run (2 of them PHP based, 1 python). So what I need to do is to treat path in url as dif
You probably want to do something with the apache-config directives, since you're asking for a virtualhost solution. Apache can only work with virtualHosts as actual domains, as @cweiske explained.
The solution in this case would be to either use a .htaccess
file in the sub-directories you're working in, or to set up a
block within your current (virtual-)host config.
You could also choose to host them on different sub-domains if you per-se want to run them as VirtualHosts ('app1.domain.org')