Connecting to localhost or pain

Alexander Vogt av at
Sun Mar 21 17:10:47 MSK 2010

>> 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 default;
  server_name localhost;

is the correct config then.

*rolls eyes*

More information about the nginx mailing list