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!

Setup Reverse Proxy for Apex Environment

MätesJan 23 2021

Hi,
I want to setup Apache to use Apex behind a reverse proxy. My configuration is:
Oracle RDBMS 19c
Application Express Version: 20.2
ords 20.3.0.301.1819
apache-tomcat 9.0.26
When I enter the url (https://192.168.178.153/ssp)) to get to Apex login the page looks a bit weird and after entering my credentials I'm being directly redirected to the page that states "Your session has ended". When I use the Tomcat url everting is fine.
image.pngafter login
image.pngBelow is my Apache config file (/etc/httpd/conf.d/vhost-ssl.conf)
Listen 192.168.178.153:443
<VirtualHost *:443>

# Basic Configuration

ServerAdmin webadmin@embe.de
ServerName 192.168.178.153:443
DocumentRoot /var/www/html
ProxyRequests On
ProxyPreserveHost Off
useCanonicalName On

RewriteEngine On

# Logging

LogLevel error
ErrorLog "|/usr/sbin/rotatelogs /var/log/httpd/l1vora10_error.log.%Y%m%d 86400"
CustomLog "|/usr/sbin/rotatelogs /var/log/httpd/l1vora10_access.log.%Y%m%d 86400" combined env=!dontlog

#customlog "|/sbin/rotatelogs /var/log/httpd/l1vora10_access.log.%Y%m%d 86400" combined env=!dontlog

# Vhost related SSL config

SSLEngine On
SSLProxyEngine On
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
SSLCertificateFile /etc/ssl/certs/embe.crt
SSLCertificateKeyFile /etc/ssl/private/embe.key

SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
SSLProxyCheckPeerExpire Off

RequestHeader set X-Forwarded-Proto "https"
RequestHeader unset origin
Header set Access-Control-Allow-Origin "192.168.178.153,192.168.178.153:8443"
ProxyPass "/ssp/i/" "https://192.168.178.153:8443/ssp/i/"
ProxyPassReverse "/ssp/i/" "https://192.168.178.153:8443/ssp/i/"

ProxyPass "/ssp/" "https://192.168.178.153:8443/ords/"
ProxyPassReverse "/ssp/" "https://192.168.178.153:8443/ords/"
ProxyPassReverseCookiePath "/ords/" "/ssp/"

</VirtualHost>

Does anyone of you has an idea what is missing/wrong? Thanks a lot in advance.

Mätes

This post has been answered by Mätes on Jul 13 2022
Jump to Answer
Comments
Post Details
Added on Jan 23 2021
7 comments
3,540 views