To manage the root directory of your web hosting on your cloud server using the SWPanel, you will have to follow the following steps:
1. Indicate in the upper box of the SWPanel the name of the service whose root directory you want to modify.
2. In the menu on the left side of the Dashboard of your Hosting service, click on the drop-down Manage Service to go to the option Manage Web Root Directory.
3. By default, the root path of the web is domain/data/web. To modify it, you will have to click on the directory tree on the folder you want to set as root directory.
4. Finally, accept the changes by clicking on the "Assign directory" button.
Once the action is completed, your hosting will load the website from the directory defined in the previous step.