• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Problems with internal subdomain redirect

M

me01

Guest
Now i'm developing a new version of a portal.
For testing, y have a subdomain in main enterprise domain:

portal-name.maindomain.com

Then, y configured in plesk new domain "portal-name.com".
I need to redirect portal-name.domain.com to portal-name.com but internally, then:

From:
/var/www/vhosts/maindomain.com/subdomains/portal-name/httpdocs

To:
/var/www/vhosts/portal-name.com/httpdocs

For the moment, portal-name.com is working in other server and external redirect is not a valid solution.

For doing this, i redefined DocumentRoot in
/var/www/vhosts/maindomain.com/subdomains/portal-name/conf/vhost.conf

Redirects works ok, but don't process PHP Code and show it!!! (creating an Apache Alias have the same behaviour)

Thank you!
Me
 
DocumentRoot & PHP

Any solutions the original thread?

Mine is similar. I have 50-60 sites, that use Smarty, so i have consolidated all of them into a single directory structure under one domain name.

Example:

PHP:
/var/www/vhosts/domain.com/httpdocs/clients/100/httpdocs
/var/www/vhosts/domain.com/httpdocs/clients/101/httpdocs
/var/www/vhosts/domain.com/httpdocs/clients/102/httpdocs

When you goto the corresponding URLs above, everything works fine! (domain.com/clients/###/httpdocs/)

For each of the client domain names pointing, I've created the vhost.conf, and added the...

PHP:
DocumentRoot /var/www/vhosts/domain.com/httpdocs/clients/100/httpdocs

Regular HTML, images, etc... all fine. PHP wont execute. It just shows up as regular text in the source code.

Any ideas? :(
 
php smarty

We've got a similar issue with php and smarty in a sub-domain. It appears to be permissions related - if you set smart and templates to 777 it works, but obviously this is not a solution. Would love ideas on this. Smarty works fine on the main domain.
 
Back
Top