HelioHost Posted March 15, 2020 Posted March 15, 2020 Username: ballagyr, Server: Tommy, Main domain: cybercity.eu.org Hi, I am the user (ballagyr) of the domain (cybercity.eu.org) and Iwould 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, fromthe files of the subdomain sites. If that is possible, I appreciate the change. Thanks!
ballagyr Posted March 15, 2020 Posted March 15, 2020 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!
ballagyr Posted March 16, 2020 Posted March 16, 2020 (edited) I don't know if it is a limitation of cPanel, because I was able to do this on another host. Edited March 16, 2020 by ballagyr
ballagyr Posted March 16, 2020 Posted March 16, 2020 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!
wolstech Posted March 16, 2020 Posted March 16, 2020 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.
wolstech Posted March 16, 2020 Posted March 16, 2020 @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. .
ballagyr Posted March 16, 2020 Posted March 16, 2020 (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 March 16, 2020 by ballagyr
Flaze Posted March 16, 2020 Posted March 16, 2020 You can get a heliohost.org subdomain by using this script: http://www.heliohost.org/classic/support/scripts/domain Make sure that you include .heliohost.org, not just the name.
ballagyr Posted March 16, 2020 Posted March 16, 2020 I will do that. Thanks to everyone who answered me. Obrigado!. fasouza.
Recommended Posts