Reverse proxy configuration for Tomcat

For Tomcat, the reverse proxy configuration consists of a tomcat-proxy.conf file that contains the reverse proxy settings.

To configure the reverse proxy for Tomcat:

  1. Find the config directory for your OHS instance (MW_HOME/Oracle_WT1/instances/INST_DIR/config/OHS/ohs1/).
  2. 2. Within the moduleconf/ subdirectory, create a file called tomcat-proxy.conf with the following content:
    ProxyPass /oberr.cgi !
    ProxyPass /oam_logout_success http://hostName:tomcatPort/c/portal/logout
    ProxyPassReverse /oam_logout_success http://hostName:tomcatPort/c/portal/logout
    ProxyPass / http://hostName:tomcatPort/
    ProxyPassReverse / http://hostName:tomcatPort/
    Where:
    • hostName is the host name for the Studio application.
    • tomcatPort is the port number used by Tomcat for Studio.

    The /oam_logout_success proxy rule redirects this request (after the Webgate handles it) to Studio's logout URL. With this configuration, when users sign out of SSO from another application, it is reflected in Studio.

  3. Restart the OHS instance using the opmnctl command, which is run on the command line from MW_HOME/Oracle_WT1/instances/INST_DIR.
    bin/opmnctl restartproc
  4. Test the OHS URL in your browser.

    You should be forwarded to Studio.