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!

APEX with ORDS and Apache Reverse Proxy: Undesired redirection https -> http

Markus W.Feb 19 2021 — edited Feb 19 2021

Hi,
I'm running APEX (version 4.2.6, upgrade soon) with Apache 2.2.34 and ORDS 20.4. in standalone mode (instead of EPG). Apache is configured to act as a reverse proxy like
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /i/ http://myhost.example.com:8154 /i/
ProxyPassReverse /i/ http://myhost.example.com:8154/i/
ProxyPass /ords/ http://myhost.example.com:8154/ords/
ProxyPassReverse /ords/ http://myhost.example.com:8154/ords/
Apache itself is listening on port 7777/tcp to serve requests via SSL/TLS.
Strangely enough, a client requesting
https://myhost.example.com:7777/ords/f?p=400 will be redirected to
http://myhost.example.com:7777/ords/f?p=400
The ORDS itself is working just fine when connecting to http://myhost.example.com:8154/ords/f?p=... to use the APEX application or the development environment. By setting ProxyPreserveHost to Off I'm able to get rid of the effect, but I would like to avoid any unnecessary modifications to the HTTP header because of Single Sign On which should be implemented in the next step.
Any help would be greatly appreciated.
Regards,
Markus

Comments
Post Details
Added on Feb 19 2021
1 comment
2,802 views