Connecting to localhost or 127.0.0.1 pain

Alexander Vogt av at creativespot.de
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 127.0.0.1:80 default;
  server_name localhost;
  ...
}

is the correct config then.

*rolls eyes*
;)



More information about the nginx mailing list