I hope this is the right place to post this issue, serverfault seemed wrong to me...
Say I have a machine running MAMP.
This machines IP is managed in a account from dyn.com to a specific domain, say
In htdocs there is currently only one folder, holding an owncloud system.
Now I thought I could simply add a little homepage by adding a second folder and registred a second domain
mysecondadress.com, in dyn-account.
But now, instead of setting the IP of
and the IP of the homepage
I was only able to set the IP
So my next idea was, that there has to be a way to redirect, depending on the requested domain.
myadress.com would be redirected to
mysecondadress.com would be redirected to
To achieve this I found some information about "WebHop", 301-redirects, using .htaccess or even virtual hosts. But the described usage everytime was a different one than my situation. Now I am totally confused what would fit my case or if thats just impossible, the way I thought of it.
As I looked into WebHop it seemed, that I would need 3 domains, say
homepage.com, where the two latter would redirect to
master.com/homepage, but I wasn't able to get this to work.
Was that a wrong approach or did I do something else wrong?