-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hitting an undefined app URL displays the 'wrong' app #15
Comments
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:
to
|
So we'll leave this to documentation / configuration? |
To be honest? Yes, it's just an oddity in nginx.
|
I agree. Less software to write, the better! @rnorth is that satisfactory? |
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! |
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. |
e.g. if you only have one app deployed at foo.dokku.me and for any reason try to hit bar.dokku.me in a browser, you'll see the foo app. While pretty minor, it might be good to display a No Such App page like heroku does, to avoid confusion.
Looks like nginx is routing to either the first or the last servername it knows of if no matching servernames are found. We could fix this by adding a fallthrough server block to the nginx dokku.conf (e.g. with server_name _)
The text was updated successfully, but these errors were encountered: