I have a webhoster which does not serve Name aliases for my DNS Domain. I have 2 different domains. Both should be redirected to different targets (e.g. /index.php , /abc/index2.php), but at the same root-server.

How could i use both domains with one server with PHP or a tool (ubuntu)?

Thanks.