Configuring the Apache reverse proxy for Midtier
Add a new context for the Reverse Proxy
- Logon to the server where Midtier is installed.
- On the Apache reverse proxy server for Midtier, open C:\Program Files\Apache Software Foundation\Tomcat6.0\conf\server.xml.
- Add the following <Context> element, located inside the </Host> element, towards the end of the file.
<Context deployOnStartup="true" docBase="C:\Program Files\BMC Software\ARSystem\midtier" path="/qa1/arsys" reloadable="false">
<!--This disables session persistence across shutdown/startup.-->
<Manager pathname=""/>
</Context>
</Host>
Remove the existing context for the default Midtier URL
- Logon to the server where Midtier is installed.
- Open C:\Program Files\Apache Software zoundation\Tomcat6.0\conf\Catalina\localhost.
- Rename the arsys.xml file to arsys.xml.turnItOff.
This deactivates the default Midtier URL that is used by everyone - Restart Midtier, so that the changes to take effect.
- Restart the web server , so that the changes to take effect.
Reverse Proxy Settings
- Logon to the server where the reverse proxy is installed.
- On the Apache reverse proxy server for Midtier, open /usr/apache/conf/httpd.conf.
Under the PROXY STATEMENTS area, add the following lines. (There should be two lines for each Midtier, since the URL is same. Because there is only one reverse proxy, the different Midtiers are identified by different context paths (qa1, qa2, and so forth)).
\# QA servers
\# QA midtier 1 - itsm-mtier1.labs.bmc.com
ProxyPass /qa1/arsys http://itsm-mtier1.labs.bmc.com:8080/qa1/arsys
ProxyPassReverse /qa1/arsys http://itsm-mtier1.labs.bmc.com:8080/qa1/arsys
\# QA midtier 2 - xyz.labs.bmc.com
ProxyPass /qa2/arsys http://xyz.labs.bmc.com:8080/qa2/arsys
ProxyPassReverse /qa2/arsys http://xyz.labs.bmc.com:8080/qa2/arsys- The new URLs are https://rhl-apache-vm3.eng.remedy.com/qa<num>/arsys.
- Run the maintenance Utility, and select the System Integration tab.
- In the Application Server field, enter the new application server name set via the reverse proxy.
- Leave the Port field blank, if the BMC IT Business Management Suite application with reverse proxy does not have it.
- Check the web path in AR. It should point to the new reverse proxy Midtier.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*