We’ve build a web application which must serve different domains. At the moment we are using domain pointers (with alias) and this works fine. The thing is we want to be able to attach different SSL certificates to the domains, want to keep resources per user and also be able to manage DNS. What I’ve tried is the following:
Added a new user of one of the domains, F.E. newdomain.com
In custom HTTPD I added the following for newdomain.com:
|*if SSL_TEMPLATE="1"|
|?DOCROOT=/home/user/domains/basedomain.com/private_html|
|*else|
|?DOCROOT=/home/user/domains/basedomain.com/public_html|
|*endif|
These docroot is from the base domain. At the moment this does not work, I get the following error:
Mismatch between target UID (1004) and UID (1002) of file "/home/user/domains/basedomain.com/public_html/index.php"
This is of course right but I try to find a way to solve this.
I matched PHP versions for basedomain.com and newdomain.com
Our server uses apache/2 with Cloudlinux with fastcgi configured in DA.
Any ideas?
Added a new user of one of the domains, F.E. newdomain.com
In custom HTTPD I added the following for newdomain.com:
|*if SSL_TEMPLATE="1"|
|?DOCROOT=/home/user/domains/basedomain.com/private_html|
|*else|
|?DOCROOT=/home/user/domains/basedomain.com/public_html|
|*endif|
These docroot is from the base domain. At the moment this does not work, I get the following error:
Mismatch between target UID (1004) and UID (1002) of file "/home/user/domains/basedomain.com/public_html/index.php"
This is of course right but I try to find a way to solve this.
I matched PHP versions for basedomain.com and newdomain.com
Our server uses apache/2 with Cloudlinux with fastcgi configured in DA.
Any ideas?