domain and alias pointing to different folders

filth

Verified User
Joined
Nov 25, 2005
Messages
6
Hi

I am currently trying to work out how to do something.

I wish for me to be able to add domains to another domain like having it as an alias. Only thing is instead of pointing to the same root folder I want it to go into a different folder. For example the original domain would point to:-

/home/username/domains/domain.com/public_html

I want the new domains to point to:-

/home/username/domains/domain.com/public_html/forum

It would need to be automated (I can write the script to do it as long as I know how it is done). Is this possible, also is it possible with the api? If so can you give me a rough outline of how?

Thanks in advance.
 
I have managed to do it in a very crude way.

I have added a dummy domain in the package then changed the server path in httpd.conf for that domain to where I want the other forums to point too. All I do now is make the domains an alias of this 1 which can easily be done via the api.
 
Just a quick note. If you changed the user's httpd.conf (/usr/local/directadmin/data/users/.........) it will be overwritten by DirectAdmin using the httpd.conf template.
 
ahh bugger there goes that idea.

Do you know of any other way I could achieve what I wish to do then? Is there any way to get direct admin to use the path I want it to use and stay like that?
 
Back
Top