LEAF_3975_FY23_WASA_Findings - 404 Issue #2211
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
When a user enters an incorrect URL in the browser, the server will now present a customized 404 page. This is in response to a finding from the WASA report, which pointed out that the server previously displayed server-related information instead of a user-friendly error message to indicate that the requested page or file does not exist. The changes to NGINX file are on a different repository at https://github.com/department-of-veterans-affairs/LEAF-infrastructure/pull/122. These enhancements involve NGINX settings to manage the handling and display of 404 pages.
Testing:
To test this locally, follow these steps:
Change the value of var homepageURL from "/" to "/LEAF_Request_Portal/".
Update the default.conf file settings located in Docker in NGINX
/etc/nginx/conf.d/
by applying the changes found in the LEAF infrastructure Pull Request (PR).To trigger the 404 page, use the following example URL:
https://localhost/LEAF_Request_Portal/apple
Typing the example URL will display the customized 404 page.