Apache Installation & Configurations#

Apache is a freely available Web server that is distributed under an "open source" license. Version 2.0 runs on most UNIX-based operating systems (such as Linux, Solaris, Digital UNIX, and AIX). There is a Windows based Apache which run any version of Windows. The Bonotel Apache 2.4 Installation & Configuration are currently handled through Ansible automation scripts. This configuration targets only the Linux OS.

Alt

Ansible Automation#

The existing infrastructure is managed through Ansible automation. The ansible scripts are located in the GitLab http://gitlab.rezg.net/Bonotel/InfraAutomation/tree/develop/. Ansible automation is beyond the scope of this sample document. In order to get hands on experience using Ansible - download this eBook and follow through. You can also read through this crash course.

Configurations#

<Proxy balancer://loadbalancer>
  BalancerMember http://192.168.10.8:8080 route=bc_n1_ws0 loadfactor=100 timeout=65 retry=20 connectiontimeout=500ms disablereuse=On 
  BalancerMember http://192.168.10.8:8180 route=bc_n2_ws0 loadfactor=100 timeout=65 retry=20 connectiontimeout=500ms disablereuse=On
  BalancerMember http://192.168.10.8:8280 route=bc_n3_ws0 loadfactor=100 timeout=65 retry=20 connectiontimeout=500ms disablereuse=On
  BalancerMember http://192.168.10.8:8380 route=bc_n4_ws0 loadfactor=100 timeout=65 retry=20 connectiontimeout=500ms disablereuse=On
  ProxySet   lbmethod=bybusyness maxattempts=3 timeout=65 nonce=rezapple failonstatus=502,503
  Order deny,allow
  Allow from all
  Deny from none
</Proxy>

<Proxy balancer://loadbalsave>
  BalancerMember http://166.78.194.190:80 route=bc_app2_apa  loadfactor=100 timeout=120 connectiontimeout=10 disablereuse=On
  BalancerMember http://166.78.194.188:80 route=bc_app1_apa  loadfactor=100 timeout=120 connectiontimeout=10 disablereuse=On
  ProxySet   lbmethod=bytraffic timeout=120 nonce=rezapple
  Order deny,allow
  Allow from all
  Deny from none
</Proxy>

 ProxyPassMatch /bonotelhotels/*       balancer://loadbalancer/
 ProxyPassMatch /bonotelapps/bonotel/reservation/GetCancell*  balancer://loadbalsave/
 ProxyPassMatch /bonotelapps/bonotel/reservation/GetReserva*  balancer://loadbalsave/
 ProxyPassMatch /bonotelapps/bonotel/reservation/GetModifyR*  balancer://loadbalsave/
 ProxyPassMatch /bonotelapps/bonotel/reservation/AMLAvailab*  balancer://loadbalancer/
 ProxyPassMatch /bonotelapps/bonotel/common/Health*           balancer://loadbalancer/
 ProxyPassMatch /bonotelapps/bonotel/reservation/GetAvailab*  balancer://loadbalancer/
 ProxyPassMatch /bonotelapps/bonotel/reservation/GetActivit*  balancer://loadbalancer/
 ProxyPassMatch /bonotelapps/bonotel/reservation/LookupRese*  balancer://loadbalancer/

 ProxyPassMatch ^/(.*\.gif)$       !
 ProxyPassMatch ^/(.*\.jpg)$       !
 ProxyPassMatch ^/(.*\.css)$       !
 ProxyPassMatch ^/(.*\.txt)$       !
 ProxyPassMatch ^/(.*\.png)$       !
 ProxyPassMatch ^/(.*\.js)$        !
 ProxyPassMatch ^/(.*\.cs)$        !
 ProxyPassMatch ^/(.*\.php)$       !
 ProxyPassMatch ^/(.*\.html)$      !
<Location /balancer-manager>
  SetHandler balancer-manager
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1/32
  Allow from 203.143.12.24/29
  Allow from 59.163.251.96/29
  Allow from 123.231.12.179/32
  Allow from 123.231.112.138/32
  Allow from 192.168.10.8
</Location>

ProxyPreserveHost On
ProxyStatus Full
ProxyVia Full
ProxyRequests Off