• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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