We can do this by creating symbolic links from these files to the
sites-enabled directory, which Nginx reads from during startup.
We can create these links by typing:
sudo ln -s /etc/nginx/sites-available/test.com /etc/nginx/sites-enabled/
Save and close the file when you are finished.
Next, test to make sure that there are no syntax errors in any of your Nginx files:
sudo nginx -t
If there is no problem with the configuration file, then you can restart Nginx to enable your changes:
sudo systemctl restart nginx
Nginx should now be serving both of your domain names.
How to set HTTPS in laravel project: https://tech.digitindo.com/2021/02/11/how-to-force-https-in-a-laravel-project/