How to create a Linux subdomain and use a public_html subdirectory

I used to use WHM a long time ago when I was given access to the company’s VPS but now only use an Ubuntu 21.04 VPS at $6.99 per month for 50 GB…

Now with Fast NVMe
4 vCPU Cores
8 GB RAM
50 GB NVMeor 200 GB SSD
1 Snapshot
32 TB Traffic

WHM is an additional cost and I think offers nothing more than can be programmed using Apache2.

The directory structure:

/var/www/EXAMPLE.com/
  ci4/
  ci4-strict/
  jack/
  fred/
  public_html/
  system/

[quote]@TheRedDevil,
However from the example conf files you provided, I would verify that you cannot access the main subdomain folder from the main website.

I.e. www.example.com/ci4/Inc/Config.env etc.
[/quote]

None of the subdomain are accessible from /var/www/EXAMPLE.com/public_html/ unless there is a link from index.php to the specific subdomain.