Connecting to localhost or 127.0.0.1 pain
    Maxim Dounin 
    mdounin at mdounin.ru
       
    Sat Mar 20 22:40:21 MSK 2010
    
    
  
Hello!
On Sat, Mar 20, 2010 at 01:16:28PM +0100, Alexander Vogt wrote:
> >app1 connects to app2 using http://localhost but nginx doesn't
> >seem to
> >understand the request.
> >
> >Should I add localhost to the server_name???
> 
> yes, that would maybe help.
> 
> 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".
More details may be found here:
http://nginx.org/en/docs/http/server_names.html
Maxim Dounin
    
    
More information about the nginx
mailing list