2

I'm trying to run an app using Dokku without using VHOST, using only an IP address, to run on port 80

Sibelius Seraphini
  • 5,303
  • 9
  • 34
  • 55
  • What problem are you having, and what have you tried so far? – beresfordt Feb 26 '15 at 00:15
  • I've created a virtual machine ubuntu 14.10, the I've allowed incoming HTTP tcp connection at port 80. Then I've installed dokku following the installation instructions of the site After that I've use the command git push dokku master to send my web app to the dokku The web app is working because I've checked the logs, however it's not running on port 80 – Sibelius Seraphini Feb 26 '15 at 14:34

2 Answers2

0

I fixed my problem putting a nginx.conf inside my dokku app

upstream flask-domains { server 127.0.0.1:PORT; }
  server {
    listen        [::]:80;
    listen        80;
    server_name   external_ip;

    location / {
      proxy_pass http://flask-domains;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection upgrade;
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
    }
}

You should change the PORT with the PORT inside the PORT file in your dokku app, and external_ip with the IP that you are using

Sibelius Seraphini
  • 5,303
  • 9
  • 34
  • 55
-1

if I am not mistaken, If you'd like to rua an app using Dokku, you need to either use the vhost method - which mounts it on your.domain.tld:80 - or you need to hit the port directly.

Leandro Papasidero
  • 3,728
  • 1
  • 18
  • 33