• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Change the Default Home Page of Oracle HTTP Server

by admin

By default when the URL http://[OHS_HostName]:[OHS_Port] is accessed, a default welcome page is displayed. In certain scenarios, there will be a need to change this default welcome page to a custom one. This post provides steps to change this default home page of OHS to any custom page.

This can be achieved by modifying the default page definition in the httpd.conf file either via AS/FMW console or by manually editing the httpd.conf file. In this post, we are talking about how to do this manually.

10g Application Server

Modify the below lines in the httpd.conf file:

DirectoryIndex index.html

to:

DirectoryIndex custom_staticPage_name

For example ORACLE_HOME/Apache/Apache/htdocs/test.html as the default page would require:

DirectoryIndex test.html

11g Fusion Middleware

In 11g, the name of the default index page of HTTP Server is ” welcome-index.html”. So you would need to change the following entry in httpd.conf file for 11g:

DirectoryIndex welcome-index.html

to:

DirectoryIndex custom_staticPage_name

12c Fusion Middleware

In 12c, the changes needs to be done in the httpd.conf file present inside the staging directory ie. $DOMAIN_HOME/config/fmwconfig/components/OHS/ohs1:

DirectoryIndex index.html

to:

DirectoryIndex custom_staticPage_name
Note: Here “custom_staticPage_name” is the name of the static page you would liked to be displayed instead of the default index.html page. This custom page should be placed inside the htdocs directory inside the apache folder inorder to be taken effect.

Filed Under: oracle, WebLogic

Some more articles you might also be interested in …

  1. How to Restore and Recover files over network in Oracle 12c
  2. What roles can be set as default for a user in Oracle Database
  3. Recommendation for the Oracle Real Application Cluster Interconnect and Jumbo Frames
  4. ORA-01666: control file is for a standby database – failover over standby as primary
  5. How to Configure client connectivity in Oracle Data Guard configuration (Implement failover procedures)
  6. Oracle Database 18c : How to Merge Partitions And Subpartitions Online
  7. Managing High Availability of Services in Oracle RAC
  8. How to Disable Oracle Net Tracing without stopping server process
  9. Oracle RAC Interview Questions – Coherence and Split-Brain
  10. Troubleshooting Common ORA-1157 Errors (cannot identify/lock data file)

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright