How to configure custom 404 page for Yellowfin's tomcat?

Rodrigo Mercado shared this question 3 months ago
Answered

Hi Team,

Do you have steps to configure a custom 404 page for 7.3 Yellowfin's tomcat 8.5.57?


I have a customer that uses bellow script to configure the custom 404 page for other BMC apps using tomcat, however, it breaks the logging process in Smart Reporting(Yellowfin 7.3).


It is a security concern as the OTB tomcat 404 page shows the version of the tomcat.


In <Tomcat Install Dir>\Conf\web.xml he added the following:


<welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
	<welcome-file>Redirect.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>Redirect.jsp</location>
</error-page>


Attached is log that shows error message when the script is enable and users try to login.


Thank you!

Comments (3)

photo
1

Hi Rodrigo,

Thank you for reaching out to us on this. I will start by saying that I can see that the same page used as the 404 error page is being used as the Welcome page, is that intentional?

We don't have a guide for creating custom error pages, but from the looks for the errors in the logs the Redirect.jsp page is performing a sendRedirect() call after some other action has been performed (like a forward). Unfortunately coding custom error pages is outside the scope of our standard support offering, however if you require assistance I can reach out to your CSM to look at organizing some consulting time for this.

Cheers,

Neal

photo
1

Hi Rodrigo,

Hope your week is going well. I wanted to see if you were able to resolve this issue? Please let me know if you would like me to reach out to your CSM for additional assistance on this.

Cheers,

Neal

photo
1

Hi Rodrigo,


I hope things are going well over there.


Just wanted to let you know I'll be closing this request due to inactivity. However, if you ever wanted to re-visit this or have anything else I can help you with, please let me know.


Cheers,

Neal