I have main domain that is pointing to my VPS address and I want that points to /var/www -> my web melorcraft.eu, but I have two domains, the second domain I want to point to /var/www/example/ not /var/www/ because these two domains dark-gaming.eu and melorcraft.eu are mixing and can open the same website.

So for better explaining:

  1. Point "melorcraft.eu" to /var/www (that is already default = done)

  2. Point "dark-gaming.eu" to /var/www/dg.eu (at the moment this is pointing to /var/www because it's default like this)

I only know that it is possible (in apache), but I don't know how...


Yes it is possible in apache. Just use virtual hosting in apache. and define documents root for your each domain


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.