-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 configurable error pages #26
Comments
+1 to this, will be a great enhancement. |
+1 Waiting for this. |
+1 |
I would like the option to have the default page when no hostname is specified return just a 404 error message. Or just make it so that if anything is hit that is not a valid hostname proxy, it returns a 404 including if the default page is hit from the client using IP of the server in the URL |
+1 Sorry if this is a dumb question, but what is currently the best work around for not exposing that page saying "Congratulations! You've successfully started the Nginx Proxy Manager"? My quick solution was to create a redirect host for my bare IP and redirect to some public website. So Whoever visits my IP will just be bounced back into the internet... :-) |
This feature is really needful! |
@tophee Is redirection to a public site still the best solution? |
@jc21 any updates or plans on this feature enhancement? |
Hello, I also see that Congratulations page on my external IP. Can You tell how to make that redirection? |
You should go to settings page in web UI and change Default site settings from Congratulations page to 404 page or Custom HTML or configure a redirection. |
Hi, thanks for Your answer. I miss that settings tab. I thougt I have to make someting in command line :D |
Any updates? I really need this. |
still waiting |
same here, waiting. |
Hi everyone, Create a directory named After restarting your container; visit the dashboard, edit a proxy host, go to Advanced tab and paste the following with respect to the name of your error page file:
In this case, my error page filename is You can prepare different error pages for different hosts and also different error pages for different response codes. Hope this is helpful. |
Using HttpErrorPages with the solution of @kylethedeveloper:
This maybe can be the default inside NPM + HttpErrorPages @jc21 |
You can add a file server_proxy.conf in your /data/nginx/custom with your content example to set the custom error page globaly :
Or comment |
I've added How do I set this globaly in NPM? |
How do you prepare different error codes for the same proxy host? e.g. If you want to have an 403 and 502 error page. |
Is it still planned to integrate this in the future? |
Also, for anyone having the same issue as @BobWs, the When I did this, I ran into another error:
It seems that this directive has been set somewhere else, and nginx does not accept duplicates. I could fix this by commenting out the ´proxy_intercept_errors on;´and now it is working beautifully. Hope this helps someone. |
It would be nice to allow the user to specify the content for the following pages
The text was updated successfully, but these errors were encountered: