Is the domain directory structure really like this?

lyrae

Registered
Apr 4, 2009
1
0
51
Alright. Signed up for a webhost, which uses cpanel.

I have 3 domains.
www.domain1.com
www.domain2.com
www.domain3.com

When i signed up, it asked me for a domain to be my 'main' domain. I chose www.domain1.com

Ok so if i wanna use domain1.com, i FTP into my account, and in there, i see 'public_html'.

Ok. I put my HTML files in there, my images, etc.

So I add my other domains via 'Addon Domains'.

This creates 'domain2.com' and 'domain3.com', all inside and mixed with my HTML files, images, etc in 'public_html'.

Essentially, allowing people to go to www.site1.com/site2.com/.

So basically, it's something like this:
/
--- public_html
------ index.php
------ contact.php
------ about.php
------ domain2.com
------ domain3.com

Does this look right?
Looks messy IMO.
 
Last edited:

Warrenw

Active Member
PartnerNOC
Nov 1, 2008
25
0
51
Yes, addon domain creates folder inside public_html folder and you will need to upload your web site contents in that folder.

Kailash
You can also change the document root for the domain in the httpd.conf virtual host entry for that domain.
 

Kailash1

Well-Known Member
Nov 27, 2006
255
2
168
cPanel Access Level
Root Administrator
Twitter
You can also change the document root for the domain in the httpd.conf virtual host entry for that domain.
For that he has to contact his host as he is on shared server and he can't access httpd.conf.

Kailash