Skip to content

Conversation

@jgwalker
Copy link
Collaborator

@jgwalker jgwalker commented Jan 6, 2023

fix: Added custom 404 error page to app-demo nginx conf with server details removed.
The app-demo service provides a trivial web-page that redirects to https://www.bit-broker.io/docs/getting-started/demo/
However, because the k8s deployment maps this to / (e.g. demo.bit-broker.io), any access to /some/invalid/path gets handled by this service, for which nginx will 404. This was configured to use the default nginx error message which includes basic server version info.
To address this, a custom 404 error page has been added & enabled which removes any server info.

NB nginx is still returning a server header, the version info has been disabled, but it's non-trivial (i.e. requires a 3rd party module) to strip the Server header completely e.g. per https://www.getpagespeed.com/server-setup/nginx/how-to-remove-the-server-header-in-nginx

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

Successfully merging this pull request may close these issues.

2 participants