>> alternatively add "default" to the server_name. > > s/server_name/listen/. > > Adding "default" to the server_name does nothing, it >just adds > another server alias "default". indeed, sorry for confusion. server { listen 127.0.0.1:80 default; server_name localhost; ... } is the correct config then. *rolls eyes* ;)