Git Product home page Git Product logo

Comments (6)

Kyso avatar Kyso commented on May 18, 2024

This is actually quite simple, Dokku includes itself before the /etc/nginx/sites-enabled. Just swap those two wildcard includes at the bottom of /etc/nginx/nginx.conf and you'll be sweet to go for setting your default vhost.

EDIT:
That is, swap both the conf.d line and the sites-enabled include lines,

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

to

include /etc/nginx/sites-enabled/*;
include /etc/nginx/conf.d/*.conf;

from dokku.

progrium avatar progrium commented on May 18, 2024

So we'll leave this to documentation / configuration?

from dokku.

Kyso avatar Kyso commented on May 18, 2024

To be honest? Yes, it's just an oddity in nginx.
On Jun 16, 2013 3:35 PM, "Jeff Lindsay" [email protected] wrote:

So we'll leave this to documentation / configuration?


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-19517615
.

from dokku.

progrium avatar progrium commented on May 18, 2024

I agree. Less software to write, the better! @rnorth is that satisfactory?

from dokku.

rnorth avatar rnorth commented on May 18, 2024

What about placing dokku.conf in sites-enabled in the first place? Does that strain the metaphor of a 'site' too far? ;)

Otherwise, I'm totally fine with the suggestion of documentation - totally agree with the principle of less code!

from dokku.

progrium avatar progrium commented on May 18, 2024

Let's close for now and if it keeps nagging or other people complain we'll think about it then. I put it on the wiki for now under Recipes: https://github.com/progrium/dokku/wiki/Recipes

If anybody has proto docs or snippets or anything, feel free to put on the wiki. Eventually they might find their way into more official docs.

from dokku.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.