• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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