• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Mapping Subdomains to Specific Directory

N

NorbertH

Guest
I am using Plesk Panel 9.5.1 for Linux at my VPS hosting provider. The domain and subdomain support in Plesk works for most of my applications. However, I am having trouble getting Plesk to support Drupal6 multi-site support where multiple subdomains are directed to a common Drupal installation which uses the subdomain to select the correct Drupal instance.

I can install Drupal to a subdirectory of .../vhosts/<domain>/httpdocs. If I define subdomains in Plesk, each is mapped to .../vhosts/<domain>/subdomains/<subdomain>/httpdocs. Is there a way to map the subdomains to a common subdirectory?

At the moment, I am not using the DNS capabilities of Plesk. My hosting provider is handling DNS resolution. It turns out that my provider maps all subdomains to the IP associated with the domain.
Thanks, Norbert
 
FractalizeR’s vhost.conf tip

Igor, thanks for the pointer! I will test it out over the weekend.

I tried a different approach yesterday that also seems to work. I created a subdomain solely for Drupal and used Plesk to install Drupal into the subdomain document root. I then created a vhost.conf file for the subdomain containing a list of subdomains which that Drupal application would handle. This worked 'out of the box' without any need to modify .htaccess Rewrite rules. Time will tell of there are any side-effects.
 
Back
Top