I check about balancing the traffic between the two servers and here is the conclusion for what i learn and found:
There are different softwares for balancing the traffic between servers BUT.
1. Almost all of them for linux and windows are not good. There are free softwares which are available in the internet. I check Linux [...]
.htaccess
files can be enabled by placing the following contents in the
httpd.conf
file:
AccessFileName .htaccess
<Directory “/usr/local/psa/home/vhosts”>
Options +All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Restart apache.
How to set up the caching using Apache 2.0.
In order to get apache proxying the requests the following line needs to be uncommented in the httpd.conf:
LoadModule proxy_http_module modules/mod_proxy_http.so
The following modules are also needed to get the caching working. They may not appear in your httpd.conf so if not, you’ll have to add them:
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule [...]