1

I'm working with a client that just lost control of their domain name and I'd like to be able to continue working on the site.

Since the domain name is no longer resolving to the Digital Ocean server, I'd like to start accessing the site directly via it's IP address and possibly a random port as well.

I've got a postgres container setup with a randomly generated port number 0.0.0.0:XXXXX using the postgres plugin, but would like to do the same with the app container.

  • And if someone could add a dokku tag as well I'd appreciate it. – Nilloc Feb 15 '16 at 21:29
1

You'll want to turn off vhost by running the following command:

dokku config:set APP NO_VHOST=1

Note that in a future dokku version, we may provide better procedure around this

  • Works great, thanks! I assume I just remove this config when I want to go back subdomain based apps? – Nilloc Feb 18 '16 at 18:28
  • Yes, that is correct. – Jose Diaz-Gonzalez Feb 19 '16 at 2:58
  • I should add that after removing the NO_VHOSTS I also had to rebuild the app to get it to fix the nginx.conf too, but otherwise it was pretty easy, Thanks again. – Nilloc Feb 19 '16 at 18:14
  • I don't argue/question the value of your answer! But please explain the "we may provide" ... Eg by adding an appropriate "disclosure" about any type of link that may exist between you and "dokku" (if such link exists), for those who are not familiar with "dokku". Such disclosure seems to comply with the rules around here also ... and can prevent invalid flagging of this answer ... – Pierre.Vriens Feb 22 '16 at 13:12
  • I'm josegonzalez, one of the maintainers of dokku. Feel free to flag my answer - which is otherwise valid... - if that isn't good enough. – Jose Diaz-Gonzalez Feb 23 '16 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.