Showing posts with label Oracle HTTP Server (OHS). Show all posts
Showing posts with label Oracle HTTP Server (OHS). Show all posts

Friday, June 12, 2009

Oracle HTTP Server Version Information Not visable in Error pages

Default the users can see which Application Server is used to serve the pages, for security reasons this is not desirable.

These messages can be removed by setting Signature Off in the httpd.conf instead of Signature On.

Signature On:

Forbidden
You don't have permission to access /pls/orasso on this server.
  _____  

Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at sso.someserver.com Port 443



Signature Off


Forbidden
You don't have permission to access /pls/orasso on this server.



But now the signature is still in the HTTP Headers. This can be disabled by adding the line:

ServerTokens Prod

Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.

Friday, March 20, 2009

ErrorDocument not working for Oracle HTTP Server with OC4J

When an application is deployed in an OC4J container sometimes ugly error messages are thrown in the browser (401 Unauthorised). Normally these messages can be formatted in $ORACLE_HOME/Apache/Apache/conf/httpd.conf with the ErrorDocument feature. But there is a bug in Oracle HTTP Server. This can be solved by adding the following line in $ORACLE_HOME/Apache/Apache/conf/mod_oc4j.conf


<IfModule mod_oc4j.c>
Oc4jUseOHSErrors on
</IfModule>


And in httpd.conf:


ErrorDocument 401 "You are not authorised to view this page.


Metalink note: 560358.1

Thursday, March 19, 2009

Obtain OHS version for Oracle Application Server

Metalink Note 260449.1 describes how to obtain the OHS version of an Oracle Application Server.


$ORACLE_BASE/oraInventory/Components/oracle.apache.apache/directory-with-version