Linux Hint published a tutorial showing you how to set up Nginx server blocks on Ubuntu 22.04.
How To Set Up Nginx Server Blocks on Ubuntu 22.04
To set up Nginx Server Blocks on Ubuntu 22.04, install Nginx, create directory, change its permissions, create HTML file, and set up Nginx server block for it.