How to disable default welcome page in OHS

Here we will see how to disable defaut welcome page in OHS. It is a non complaince to disclose the sever information to the user .Hence we need to fix it . below are the 2 possible way . Default page is https://IP:port/ this will give a welcome page.

1. To completely disable, follow the steps:

Edit $ORACLE_HOME/user_projects/domains/<domain>/config/fmwconfig/components/OHS/ohs1/httpd.conf and set as follows:

<Location />
 Options -Indexes
 DirectoryIndex disabled
</Location>

OR

II. With the below configuration in $ORACLE_HOME/user_projects/domains/<domain>/config/fmwconfig/components/OHS/ohs1/httpd.conf, OHS will serve index.html from any directory that is been requested.

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

If you do not want to see the default “index.html” page, you may consider below options:
1. Replace index.html page with your desired content.
OR
2. Use below directive inside the htdocs directory configuration to set your own custom page:
<Directory “${ORACLE_INSTANCE}/config/fmwconfig/components/${COMPONENT_TYPE}/instances/${COMPONENT_NAME}/htdocs”>
DirectoryIndex custom.html

Copy the custom.html page to htdocs location.

3.If we dont want the page either perminently delete also can .

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *