Configuring multiple sites on Nginx

Hi, thank you for this awesome OS. It installed perfectly in my Orange PI 4 LTS.

I have a question regarding configuring nginx to serve multiple sites.
Now my nginx only serves vauitwarden application.

From what I see from this forum, we are suggested to create a new file within sites-dietpi folder, but from what I know, we add the server_name only in sites-available server.

How to configure it to serve multiple webs with different domains?

Thank you


depends a liftle bit on what configuration you like to add. sites-dietpi is invoked by /etc/nginx/sites-available/default within the given default server block

Therefore it might be best to specify new vhost within own conf file inside /etc/nginx/sites-available/

ah okay, then it is still safe to create a new vhost inside the nginx/sites-available.

Will try it later, thanks!