• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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