Monday, April 3, 2017

HTTPS Reverse Proxy settings for Apex applications using ORDS

If you are hosting your Apex apps with a cloud provider who is serving the apps on HTTPS (For example  WARNING: should only be used for evaluating Apex and should never be used for hosting production apps), and you want to access your apps using your domain like then you need do little bit of extra to get it working on Apache.
Here is the configuration you need for that. Basically you need to turn off Cert verify and keep ProxyPreserveHost on

<VirtualHost *:443>
  DocumentRoot /var/www/html
  # Configure your SSL Cert here
  # To enable SSL Proxy support
  SSLProxyEngine on
  ProxyPreserveHost On
  SSLProxyVerify none
  SSLProxyCheckPeerCN off
  SSLProxyCheckPeerName off
  SSLProxyCheckPeerExpire off  
  # Proxy URL Rewrite
  ProxyPass /
  ProxyPassReverse /

1 comment: