ClemaX
Software developer interested into security and sustainability.
We growing wiser, or are we just growing tall?
- Damian Marley
Nginx is pretty easy to set up. Look up “nginx virtual hosts”. You might want to use certbot/acme if you don’t have SSL certificates for your domain names. You need either a wildcard certificate (*.example.com), a certificate with SAN (Subject Alternative Name) containing the second subdomain, or two certificates (one for each subdomain). Note that subdomains can be found more easily than path based websites, if you allow connections from the whole WAN.
Try this:
for file in ./*
do
echo "$file"
done
To do some substitution operation om the filename you can use Bash Parameter Expansion.
Rumors say there are some platforms selling grow-kits including everything needed to get started. In Europe, people recommend some platform starting with Zam and ending with nesia, which supposedly provide a variety of kits.
You can also find plenty of resources online to start from scratch. The easiest seems to be the uncle bens method.