• 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

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