Same DocumentRoot, unique email domains.

martinostlund

Verified User
Joined
Feb 10, 2011
Messages
13
Hello,

I have a situation where we need to be able to share the same code-base to multiple domains from the same public_html folder, but have separate email accounts on each domain.

Normally I would just add a domain pointer or use ServerAlias, but I need to add these as a separate domain to be able to have unique mail accounts for each.

How can I achieve this? I hope this can be done through DirectAdmin GUI and does not require SSH access, as one of our resellers needs to be able to do this theirself a couple of times a day.

/Martin
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,967
Location
GMT +7.00
Hello,

Create domain, remove it's public_html and symbolic-link it to the correct public_html and do you're scripting.
 

johannes

Verified User
Joined
Feb 18, 2007
Messages
628

ln -s <path to the file/folder to be linked> <the path of the link to be created>
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,967
Location
GMT +7.00
@zEitEr can you provide instructions to symbolic link?

If you want to learn on how to create symlink check the reply from the user @johannes.

I'm replying only for the reason to warn you that symlinks will work only within one user account. You can not symlink folders between different users. If you need to share content between different users another solution should be used.
 
Top