KB Article #178078
How to configure Apache Web Server reverse proxy infront of API Manager
Problem
This is the configuration to run a Reverse Proxy on standard https port 443 infront of API Manager backend.
The Apache Web Server is version 2.4.7 on Linux Mint 17.3
Apache is setup for HTTPS with a certificate and the browser for API Manager will need to trust this certificate.
Apache is not verifying the certificate of API Manager although this would need to change in secure environments.
Resolution
Here is the VirtualHost configuration from the Apache conf file
ServerName milnerm.wks.dubl.axway.int
<VirtualHost *:443> ServerAdmin webmaster@localhost
DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine On SSLProxyEngine On ProxyRequests Off ProxyPreserveHost On SSLCertificateFile /etc/apache2/ssl/apache.crt SSLCertificateKeyFile /etc/apache2/ssl/apache.key SSLProxyCACertificateFile /etc/apache2/ssl/nodemanager-1.pem SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off ProxyPreserveHost on ProxyPass / https://support3.lab.dubl.axway.int:8075/ ProxyPassReverse / https://support3.lab.dubl.axway.int:8075/ Header edit Location ^https://milnerm.wks.dubl.axway.int:8075 https://milnerm.wks.dubl.axway.int:443 </VirtualHost>