From 966daac0403b7011dc7c4764bcc0bef23bbe0824 Mon Sep 17 00:00:00 2001 From: Kurtis Jensen Date: Mon, 2 Jan 2023 04:48:02 +0000 Subject: [PATCH] addresses feedback on docs --- docs/networking/proxies/nginx.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/networking/proxies/nginx.md b/docs/networking/proxies/nginx.md index ba4307a23..aaa5d90db 100644 --- a/docs/networking/proxies/nginx.md +++ b/docs/networking/proxies/nginx.md @@ -399,7 +399,13 @@ These are provided as an alternative to the generic Nginx error page, are shared By default, Dokku will route any received request with an unknown HOST header value to the lexicographically first site in the nginx config stack. -> Note that some versions of Nginx may create a default site when installed. This site is simply a static page which says "Welcome to Nginx", and if this default site is enabled, Nginx will not route any requests with an unknown HOST header to Dokku. If you want Dokku to receive all requests, disable this default site by removing the `/etc/nginx/sites-enabled/default` file, and then restart Nginx. +> Warning: some versions of Nginx may create a default site when installed. This site is simply a static page which says "Welcome to Nginx", and if this default site is enabled, Nginx will not route any requests with an unknown HOST header to Dokku. If you want Dokku to receive all requests, run the following commands: +> +> ``` +> rm /etc/nginx/sites-enabled/default +> dokku nginx:stop +> dokku nginx:start +> ``` If Dokku handling all requests is not the desired behavior, you may want to add the following configuration to the global nginx configuration.