• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

2 sites, 2 IP's, 2 apache directives, one common document root

L

LaytonE

Guest
Is there a way to configure apache w/ plesk to have two different site configuration point to the same directory. i.e.

www.whatever1.com -> 109.208.107.88 -> /var/www/vhosts/whatever.com/httpdocs
www.whatever2.com -> 109.208.107.86 -> /var/www/vhosts/whatever.com/httpdocs

Two completely different sites and configuration but the share a physical document root. Has anyone done this? I want to be able to rebrand a website and just load a separate template depending on my URL.

Thanks in advance
 
I think your best bet would be to have one site, and one IP - have whatever1.com point to the ip 109.208.107.88 (w/e you want) and then it goes to

www.whatever1.com -> 109.208.107.88 -> /var/www/vhosts/whatever.com/httpdocs

Then setup whatever2.com as a domain alias so that both sites resolve to the same site/ip - then in your code look at the server variable for the site/url and load the settings based on the requested site.
 
Back
Top