I assume that you are using Linux and you are using gEdit to edit your files. In /etc/nginx/sites-enabled it can leave a temporary file, for example. default~ (see ~ ).
Depending on your editor, the file may be named .save or something like this. Just run $ ls -lah to see which files are inadvertently there and delete them (thanks @Tisch for this).
Delete this file and it will solve your problem.
Omar Al-Ithawi Dec 23 '12 at 13:45 2012-12-23 13:45
source share