Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Modifying the httpd.conf file in the Apache conf folder


Follow the steps given below to modify the httpd.conf file in the Apache conf folder:

  1. Create a backup copy of the httpd.conf file.
  2. Open the httpd.conf file and locate the Listen statement in the file. Comment out the line by adding a # in front of it, as follows:

    #Listen 12.34.56.78:80
  3. Add two new Listen statements; one for HTTP and one for HTTPS, as shown below:

    Listen 40080
    Listen 40443
  4. Add two NameVirtualHost statements by using the ports that were used in the Listen statements added in the step above:

    NameVirtualHost *:40080
    NameVirtualHost *:40443
  5. Enable the required modules to load by adding the following LoadModule statements to the group of LoadModule statements:

    LoadModule headers_module modules/mod_headers.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule ssl_module modules/mod_ssl.so
  6. Make a VirtualHost entry for HTTP connections in the Virtual hosts section by using the following example:

    <VirtualHost *:40080>

    Redirect permanent /atriumsso https://vw-aus-dash-01.bmc.com:40443/bsmdashboards
    Redirect permanent /bsmdashboards/ https://vw-aus-dash-01.bmc.com:40443/bsmdashboards/
    Redirect permanent /bsmdashboards/admin https://vw-aus-dash-01.bmc.com:40443/bsmdashboards/admin
    Redirect permanent /bsmdashboards/admin/ https://vw-aus-dash-01.bmc.com:40443/bsmdashboards/admin/

    </VirtualHost>

    In the example, the server name vw-aus-dash-01.bmc.com is the name of the load balancer host. The example also includes a redirect statement for BMC Atrium Single Sign-On. If you do not use BMC Atrium Single Sign-On, you do not need to include that statement.

  7. Make a VirtualHost entry for HTTPS connections in the Virtual hosts section by using the following example:

    <VirtualHost *:40443>
      ProxyRequests off
      SSLEngine on
      SSLCertificateFile "C:/Program Files/ApacheSoftwareFoundation/Apache2.2/conf/ssl/publicCert.pem"
      SSLCertificateKeyFile "C:/Program Files/ApacheSoftwareFoundation/Apache2.2/conf/ssl/privateKey.pem"
      SSLProxyEngine On
      SSLProxyCACertificateFile "C:/Program Files/ApacheSoftwareFoundation/Apache2.2/conf/ssl/targetServerCerts.pem"
      Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED
      RequestHeader add AtssoReturnLocation https://vw-aus-dash-01.bmc.com:40443
     <Proxy balancer://dashbalancer>
      BalancerMember https://bsmdash17-sim.bmc.com:8443/ route=172-22-173-65"
      BalancerMember https://bsmdash10.bmc.com:8443/ route=172-22-172-146"
      ProxySet stickysession=ROUTEID
     </Proxy>
      ProxyPass /bsmdashboards balancer://dashbalancer/bsmdashboards nofailover=off
      ProxyPassReverse /bsmdashboards balancer://dashbalancer/bsmdashboards
      ProxyPass /bsmdashboards/ balancer://dashbalancer/bsmdashboards/ nofailover=off
      ProxyPassReverse /bsmdashboards/ balancer://dashbalancer/bsmdashboards/
      ProxyPass /bsmdashboards/admin balancer://dashbalancer/bsmdashboards/admin nofailover=off
      ProxyPassReverse /bsmdashboards/admin balancer://dashbalancer/bsmdashboards/admin
      ProxyPass //bsmdashboards/admin balancer://dashbalancer/bsmdashboards/admin nofailover=off
      ProxyPassReverse //bsmdashboards/admin balancer://dashbalancer/bsmdashboards/admin
      ProxyPass /bsmdashboards/admin/ balancer://dashbalancer/bsmdashboards/admin/ nofailover=off
      ProxyPassReverse /bsmdashboards/admin/ balancer://dashbalancer/bsmdashboards/admin/
      ProxyPass //bsmdashboards balancer://dashbalancer/bsmdashboards nofailover=off
      ProxyPassReverse //bsmdashboards balancer://dashbalancer/bsmdashboards
    </VirtualHost>

    In the example, vw-aus-dash-01.bmc.com is the load balancer host, and bsmdash17-sim.bmc.com and bsmdash10.bmc.com are members of the BMC Dashboards for BSM application server cluster.

  8. Set the cache for SSL.

    Note

    If the Apache path includes parentheses, for example, C:\Program Files(x86), the path cannot be used because Apache is unable to parse the parentheses and will not start. If this is the case on your server, use a folder with no parentheses.

    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    SSLSessionCache "shmcb:C:/ApacheSoftwareFoundation/Apache2.2/conf/ssl_scache(512000)"
    </IfModule>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*