2017-05-09 83 views
0

我不知道什麼是錯的。當我嘗試進入www.befound.com.ar和我在瀏覽器這個錯誤:ERR_TOO_MANY_REDIRECTSNginx代理 - 太多重定向

這是我的nginx.conf:

#user nobody; 
worker_processes 1; 

error_log logs/error.log; 
error_log logs/error.log notice; 
error_log logs/error.log info; 

#pid  logs/nginx.pid; 


events { 
    worker_connections 1024; 
} 


http { 
    include  mime.types; 
    default_type application/octet-stream; 


    #tcp_nopush  on; 


    keepalive_timeout 65; 


    server { 
     listen  80; 
     server_name www.befound.com.ar; 

     location/{ 

      proxy_pass http://www.befound.com.ar:8090/befound; 

     } 
    } 

} 

回答

0

我假設服務在端口8090上運行沒有nginx配置。所以,我認爲你需要的proxy_pass主機更改爲localhost - 127.0.0.1:8090

+0

我做到了,但問題仍然存在 –

+0

還添加指令'proxy_redirect關閉;'源 - http://nginx.org/en/docs/http /ngx_http_proxy_module.html#proxy_redirect – iamkhush