Public_html Inside Domain/Subdomain
#1
Public_html Inside Domain/Subdomain
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:


Attached Files
.zpp   domains.zpp (Size: 16.38 KB / Downloads: 3)
.zpp   sub_domains.zpp (Size: 12.58 KB / Downloads: 3)
Reply
#2
RE: Public_html Inside Domain/Subdomain
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.
Reply
#3
RE: Public_html Inside Domain/Subdomain
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.
***Retail***
SCPH-39002, Running FCMB, HDD-OSD, Mini-OPL.
SCPH-30002 RSW (Automobile Collection Snow White)
SCPH-10000 x2
SCPH-15000
SCPH-18000 x2
DESR-7700
SCPH-2040X x2
Linux Kit
PSBBN V0.20, V0.30
HDD Utility V1.00, V1.01

***Dev***
DTL-H30102 Running FCMB, HDD-OSD, Mini-OPL.
DTL-H20400 - Boxed
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
public_html zHostingSolutions 6 13 ,212 06-03-2021, 12:53 PM
Last Post: zHostingSolutions
redirect error after letsencrypt + subdomain mizerek 1 5 ,849 08-06-2020, 04:54 AM
Last Post: mizerek
Cannot Create 2nd 'Addon' Domain In Sentora? Error: Invalid backend configuration. Re BattlinThrough 2 7 ,625 07-07-2020, 01:22 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)