Create a new file here:
/var/www/domain.com/conf/nginx/something.conf
Everything you save here will be injected in the vhost file, so you don't have to mess with system files.
After making your changes to your custom conf:
nginx -t
If the tests does not detect any error, reload Nginx:
service nginx reload
Done.