Yesterday, 12:07 PM
I would consider removing the server blocks from the original nginx.conf and create a new file under /etc/nginx/sites-available named your domain or similar, from there create a sym link for that named file to /etc/nginx/sites-enabled .
Reasoning for this is it keeps a lot of it separate, just include the lines :
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
Within your nginx.conf to ensure it picks up your extra files.
But if you want to rock what you have, it should work, at least looking at the file.
You can use sudo nginx -t to test the configuration and see if it throws errors.
Reasoning for this is it keeps a lot of it separate, just include the lines :
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
Within your nginx.conf to ensure it picks up your extra files.
But if you want to rock what you have, it should work, at least looking at the file.
You can use sudo nginx -t to test the configuration and see if it throws errors.