• 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. Oracle Database 18c : How to Merge Partitions And Subpartitions Online
  2. How to Move OCR, Vote Disk File, ASM SPILE to new Diskgroup
  3. How Do You Read the JMS File Store .DAT file
  4. Beginners Guide to Automatic Storage Management (ASM)
  5. Oracle Database: How to catalog tape backup pieces
  6. Script To Find Redolog Switch History And Find Archivelog Size For Each Instances In Oracle RAC
  7. How to Drop/Truncate Multiple Partitions in Oracle 12C
  8. Whats is PL/SQL
  9. How to Audit Alter Tablespace in Oracle 12c database
  10. Oracle Data Guard – Tempfiles created at primary are not automatically created at standby

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright