Jump to content

Recommended Posts

Posted

Username: ballagyr, Server: Tommy, Main domain: cybercity.eu.org

 

Hi, I am the user (ballagyr) of the domain (cybercity.eu.org) and I

would like to know if you can change the root directory of this domain.

 

I would like to organize it like this:

 

/home/ballagyr/public_html/cybercity.eu.org

/home/ballagyr/public_html/subdomain.cybercity.eu.org

 

e etc.

 

So that I could isolate the files and directory of the main site, from

the files of the subdomain sites.

 

If that is possible, I appreciate the change. Thanks!

Posted

You would have to add your domain (cybercity.eu.org) as an addon domain, this way it would have its own directory (cybercity.eu.org) inside your public_html.

To do that, if you already have this domain as your main domain first you would need to change your main domain to another one (like a heliohost.org subdomain or other domain) and just then add it as an addon domain in your cPanel.

Assuming I add another domain as the primary one and then I will add (cybercity) as an additional domain. So, I would put it back as a primary domain, but keeping the root directory configuration as explained above?

 

With the subdomain, I know how it works, but I wouldn't want to see them mixed with the files on the main site. I want to isolate them!

Posted (edited)

I don't know if it is a limitation of cPanel, because I was able to do this on another host.

Edited by ballagyr
Posted

I believe that a manual edition of the path of my main domain is possible and that is what I am requesting. If someone with root access can do this, thank you in advance!

Posted

We don't support this configuration.

 

The way this is normally done is to set all of their domains as addon domains, pick a something.heliohost.org for their main domain, then put an .htaccess in the public_html folder. This keeps sites from seeing each other's files, and allows you to put "non-public" stuff in public_html alongside the addon domain docroots, with access blocked by the .htaccess file.

 

As was stated above, in order for a domain to use a docroot that's not public_html, it must be listed as an addon domain. To list the domain as an addon domain, you will need to change your main domain to something else before adding it.

Posted

@fasouza: Bingo. It's not so much when Apache restarts as it is when httpd.conf gets rebuilt, but same idea since it rebuilds as prior to restarting around here anyway.

 

It's not that we don't want to, it's just how cPanel works. There are modifications/extensions available that supposedly can do it, but we don't use any of them because all they do is add complexity and risk of failure to a system that is already pushed well beyond it's design capabilities (cPanel is made to handle about 400 users per server, we have several thousand...we're actually known to cPanel's support as one of their most extreme use cases). Doing more with less is an art we take pride in, and unfortunately that means sacrificing flexibility for better speeds and more capacity.

 

.

Posted (edited)

We don't support this configuration.

 

The way this is normally done is to set all of their domains as addon domains, pick a something.heliohost.org for their main domain, then put an .htaccess in the public_html folder. This keeps sites from seeing each other's files, and allows you to put "non-public" stuff in public_html alongside the addon domain docroots, with access blocked by the .htaccess file.

 

As was stated above, in order for a domain to use a docroot that's not public_html, it must be listed as an addon domain. To list the domain as an addon domain, you will need to change your main domain to something else before adding it.

Ok, where do I get a heliohost subdomain? Because I intend to follow your suggestion.

 

PS: Or do I just put "mysite.heliohost.org"?

 

Thanks!

Edited by ballagyr
Guest
This topic is now closed to further replies.
×
×
  • Create New...