I'm using nginx as my local server. I've been able to edit the configuration file for the site aliases to adjust the root of my sites, but I was wondering if there was a way to change the server name?

The folder name of my site is really long and I just want to make a shorter .dev url name. I've tried changing the server_name setting in the generated .conf (with auto removed) and adding a new .conf file with the shorter name and the correct root, but neither seem to work.

Do I just have to edit my machines host file in order to do this or can it be done with the nginx configurations?