Difference between revisions of "APEX Oracle HTTP Server Rewrite"

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
(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...")
 
 
Line 1: Line 1:
* Have the new URL name created in DNS pointing to the physical host where APEX OHS (Oracle HTTP Server) runs on.
+
* Have the new URL name created in the DNS pointing to the physical host where APEX OHS (Oracle HTTP Server) runs on.
 
<pre>
 
<pre>
 
$ ping myapexapp.company.com
 
$ ping myapexapp.company.com
Line 7: Line 7:
 
</pre>
 
</pre>
  
* Add this block to the the htppd.conf
+
* Ensure that Apache Rewrite module is enabled.
  
 +
* Add this block to the the httpd.conf
 
<pre>
 
<pre>
 
<VirtualHost *>
 
<VirtualHost *>

Latest revision as of 04:59, 10 August 2012

  • 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>