• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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