Creating same subdomain name/directory on add-on

hbhb

Well-Known Member
Dec 1, 2006
67
0
156
I have a problem here.

I have 2 domain on 1 account, which one is called domainA.com & domainB.com is an add-on.

I created 2 same subdomain name which are assigned to same subfolder!

subdomain.domainA.com (/public_html/subdomain)
subdomain.domainB.com (/public_html/subdomain)

The question is: How do i change domainB subdomain folder to something else? (eg. /public_html/domainb/subdomain)
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Use ftp to change the directory name and then modify the entry in httpd.conf to the new directory name.

A more simple way, create a new subdomain with the desired name and move the files from the old location to the new location if you can not modify your system.
 

hbhb

Well-Known Member
Dec 1, 2006
67
0
156
no that's not what i mean.

subdomain.domainA.com (/public_html/subdomain)
subdomain.domainB.com (/public_html/subdomain)

sub domain for domainA & domainB is pointing to the same directory. How can I point it to a different folder name?
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
Edit your httpd.conf and modify the directory for its entry.

DocumentRoot /home/username/public_html/directory