• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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