APEX Oracle HTTP Server Rewrite

From Ittichai Chammavanijakul's Wiki
Revision as of 04:58, 10 August 2012 by Ittichai (talk | contribs) (Created page with "* Have the new URL name created in DNS pointing to the physical host where APEX OHS (Oracle HTTP Server) runs on. <pre> $ ping myapexapp.company.com PING physicalhost.company.com...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Have the new URL name created in 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
  • Add this block to the the htppd.conf
<VirtualHost *>
	ServerName myapexapp.company.com
	ServerAlias myapexapp
        RewriteEngine On
	RewriteRule ^/$ /pls/apex/f\?p\=100 [R=302,L,NE]
</VirtualHost>