3
我目前正在嘗試使用Dokku在EC2實例上部署我的應用程序,我的第一印象是它真的很棒。儘管如此,我仍然遇到了一些與我的應用程序配置有關的問題,即它可以通過端口80到達,而不是到達碼頭集裝箱端口。Dokku端口配置問題EC2
因此,例如,當我試圖達到我的應用程序是到達下:
http://recipeapp.xxx.de:49169/
,但不是在
我VHOST的配置是這樣的:
xxx.de
nginx.c ONF應用作爲生成以下內容:
upstream recipeapp { server 127.0.0.1:49169; }
server {
listen [::]:80;
listen 80;
server_name recipeapp.xxx.de;
location /{
proxy_pass http://recipeapp;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Request-Start $msec;
}
}
添加我的遙控器,帶: git的遠程添加AppStore的dokku @ XXX:recipeapp
而且隨着推: 混帳推AppStore的主
那我做錯了什麼?我現在試了幾天才使它運行正確,但我沒有看到任何可能性。
當你點擊http://recipeapp.xxx.de/時,你看到了什麼行爲?它是nginx嗎?或者它只是掛起? – Kousha 2014-12-11 03:36:57