How to hide Tomcat's index.html that shows by default when accessing the FE
- Article Type: General
- Product: Primo
- Product Version: 3
Desired Outcome Goal:
Preventing users from accessing the tomcats index.html file that is presented by default if the Front End (FE) base URL is entered.
Procedure:
There are two approaches:
1. Rename the index.html:
In primo Version 3.0.0 to 3.1.3:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/openserver/server/search/deploy/jbossweb-tomcat.sar/ROOT.war/index.html
In Primo Version 3.1.4 to 4.0.0 and onwards:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/jbossas/server/search/deploy/ROOT.war/index.html
To:
In primo Version 3.0.0 to 3.1.3:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/openserver/server/search/deploy/jbossweb-tomcat.sar/ROOT.war/index.html.orig
In Primo Version 3.1.4 to 4.0.0 and onwards:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/jbossas/server/search/deploy/ROOT.war/index.html.orig
2. Changing the redirect.jps default location:
Edit:
In Primo 3.0.0 to 3.1.3:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/openserver/server/search/deploy/jbossweb-tomcat.sar/ROOT.war/redirect.jsp
In Primo Version 3.1.4 to 4.0.0 and onwards:
/exlibris/primo/p<x_y>/ng/primo/home/system/thirdparty/jbossas/server/search/deploy/ROOT.war/redirect.jsp
Replace:
response.sendRedirect("/index.html");
With:
response.sendRedirect("/primo_library/libweb/action/search.do?vid=<View ID>");
- Article last edited: 10/8/2013