Skip to content
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

Add application name to "No Application Configured" and "Application Not Responding" error messages #970

Closed
msabramo opened this issue Nov 6, 2014 · 5 comments

Comments

@msabramo
Copy link
Contributor

msabramo commented Nov 6, 2014

When tsuru doesn't recognize the application you're trying to hit, you get:

No Application Configured

This domain is not associated with an application.

In ordinary usage, I guess the application name would be obvious from what you just typed in the URL.

However, I have a set up where am I going through a reverse proxy so the application name is inside an nginx configuration file and thus not immediately obvious to the user.

E.g.: I type http://foobar.mycompany.com/myapp and that hits an nginx that routes to a tsuru application called "myapp".

@msabramo msabramo changed the title Add application name to "No Application Configured" error message Add application name to "No Application Configured" and "Application Not Responding" error messages Nov 6, 2014
@msabramo
Copy link
Contributor Author

This may not be possible to fix in tsuru because these errors come from hipache -- e.g.:

Unless hipache allows customizing the error pages?

@msabramo
Copy link
Contributor Author

The Hipache docs at https://github.com/hipache/hipache say:

When something wrong happens (e.g., a backend times out), or when a request for an undefined virtual host comes in, Hipache will display an error page. Those error pages can be customized, and a configuration parameter is available to specify where these custom pages are located.

@msabramo
Copy link
Contributor Author

Here's how to configure custom error pages:

  • server.staticDir: The absolute path of the directory containing your custom static error pages. Default value null means it uses Hipache's pages.

From hipache/hipache@c3fef07

These seem to be static pages though so it still looks difficult if not impossible to include the application name unless each tsuru application gets its own directory of static error pages.

@msabramo
Copy link
Contributor Author

msabramo commented Jan 4, 2015

I'm poking around with changing hipache to do what I want:

hipache/hipache#193

@github-actions
Copy link

This issue is 2812 days old, marking as stale! cc: @msabramo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant