Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apache, mod_proxy and several OHS/APEX environments

747430Oct 20 2011 — edited Dec 9 2011
Hi APEX - Community,

i got a problem with an internet setup for APEX applications. I'm using a typical architecture. That means, one standard apache server with mod_security and mod_proxy in a DMZ network area and OHS in a seperate intranet network. (internet -> DMZ firewall -> apache -> DMZ firewall -> OHS -> Oracle/APEX)

An setup of one apache and one ohs behind works fine. For this i used the mod_proxy configuration as follows:

ProxyPass /pls/apex https://URL_SERVER_1:PORT/pls/apex
ProxyPassReverse /pls/apex https://URL_SERVER_1:PORT/pls/apex

ProxyPass /i https://URL_SERVER_1:PORT/i
ProxyPassReverse /i https://URL_SERVER_1:PORT/i

Now i want to configure multiple ohs on this one apache in the DMZ area. For this i tried to use subdomains to choose between several dedicated ohs/apex setups with one internet URL.

ProxyPass /subdomain_1/pls/apex https://URL_SERVER_1:PORT/pls/apex
ProxyPassReverse /subdomain_1/pls/apex https://URL_SERVER_1:PORT/pls/apex

ProxyPass /subdomain_1/i https://URL_SERVER_1:PORT/i
ProxyPassReverse /subdomain_1/i https://URL_SERVER_1:PORT/i


ProxyPass /subdomain_2/pls/apex https://URL_SERVER_2:PORT/pls/apex
ProxyPassReverse /subdomain_2/pls/apex https://URL_SERVER_2:PORT/pls/apex

ProxyPass /subdomain_2/i https://URL_SERVER_2:PORT/i
ProxyPassReverse /subdomain_2/i https://URL_SERVER_2:PORT/i

The problem is, when i call the internet address "internet_url/subdomain1/pls/apex" the OHS server response the address without the subdomain ("internet_url/pls/apex"). I tried mod_rewrite with mod_proxy also, but it doesnt work. It seems, the OHS has a problem with relative URL domains!? Maybe you have a solution for this.


best regards and thx for help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2012
Added on Oct 20 2011
5 comments
451 views