Hi,
I’m trying to install a Drupal multisite with Virtualmin so that every site has his own mailbox.
-
I created in Virtualmin the “domain1.com” top-level server. I copied the drupal core files in /home/domain1/public_html/
-
In “/home/domain1/public_html/sites/” I create the folder : “domain1.com”.
In the browser I go to www.domain1.com/install.php and install Drupal. -
In virtualmin I create a new server called “domain2.com” which is alias of domain1.com.
-
In “/home/domain1/public_html/sites/” I create the folder : “domain2.com”.
In the browser I go to www.domain2.com/install.php and install Drupal. -
This works fine from the websites point of view: when I type “www.domain1.com” in the browser, the page for domain1.com shows, and when I type “www.domain2.com” in the browser, the page for domain2.com shows.
I can create an email address XXX@domain1.com and when I type “www.domain1.com:20000” in the browser I can access the email.
However, I tried to create an email address XXX@domain2.com and didn’t find any way to do it.
So I did the following further steps :
-
In Virtualmin I delete the server alias domain2.com since it can’t have any email addresses that end in “@domain2.com”.
-
I create a new top-level server for domain2.com in Virtualmin. Now the email should be ok.
-
I edit the file /etc/apache2/sites-available/domain2.com.conf :
I change the line “DocumentRoot /home/domain2/public_html”
and replace it with “DocumentRoot /home/domain1/public_html”
because I would like to use the Drupal multisite install which is locate in the “/home/domain1/public_html/sites” folder
Now when I try to access “www.domain2.com” in the browser I get the following error :
“Forbidden You don’t have permission to access / on this server.”
I guess this is because the user created with the domain2.com top-level server tries to access the directory public-html in the folder of domain1.
What can I do? I need to either:
A) Find a way to have a mailbox for a server alias
B) Allow other users to access directories in domain1 folder.
Thanks!