APEX Oracle HTTP Server Rewrite

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
  • Have the new URL name created in the DNS pointing to the physical host where APEX OHS (Oracle HTTP Server) runs on.
$ ping myapexapp.company.com
PING physicalhost.company.com (173.61.2.159): 56 data bytes
64 bytes from 173.61.2.159: icmp_seq=0 ttl=123 time=19.721 ms
64 bytes from 173.61.2.159: icmp_seq=1 ttl=123 time=17.182 ms
  • Ensure that Apache Rewrite module is enabled.
  • Add this block to the the httpd.conf
<VirtualHost *>
	ServerName myapexapp.company.com
	ServerAlias myapexapp
        RewriteEngine On
	RewriteRule ^/$ /pls/apex/f\?p\=100 [R=302,L,NE]
</VirtualHost>