Sentora Support Forums
Public_html Inside Domain/Subdomain - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Public_html Inside Domain/Subdomain (/showthread.php?tid=12755)



Public_html Inside Domain/Subdomain - zHostingSolutions - 07-11-2021

Hi.

After some time, I finally figured out how to edit the following modules where it will create domain_ext/public_html (i.e. zhostingsolutions_com/public_html).

Therefore, now, any script that says that files/directories need to be placed outside of the public view can be placed outside (i.e. zhostingsolutions_com/secure_non_public_file.php/public_html).

Also, the following still happens when domains/subdomains are created:

zhostingsolutions_com/public_html/_errorpages
zhostingsolutions_com/public_html/index.html

This is what I've been talking about needed to be in the core since zPanel when I came across y'all back in 2005.

Likewise, with subdomains. Here are the files for you to download and replace your domain and subdomain directories:


RE: Public_html Inside Domain/Subdomain - zHostingSolutions - 07-11-2021

Now, that I got this established, what I code can I use for domains and subdomains, so, I can create a trashcan inside of the domain/subdomain whenever one is created? Thanks.

zhostingsolutions_com/trash
zhostingsolutions_com/public_html

This way, when, files are deleted, they will show up in the trashcan to the corresponding domain and not removed from the server forever until I empty the trashcan or restore the file(s) and director(ies) back to the corresponding domain/subdomain. Also, my future customers can without worry, too.

Also, the trashcan should be a part of the core domains and subdomains module.


RE: Public_html Inside Domain/Subdomain - Nigel - 07-23-2021

Whichever file you edited to get your folder outside of the domain folder, add a trash folder to the list of folders that get created.