Databases Reference
In-Depth Information
2. In the same file, add the following configuration settings:
<VirtualHost *:80>
ServerName localhost.localdomain
ErrorLog /var/log/apache2/http.error.log
CustomLog /var/log/apache2/http.log combined
<Proxy *>
AddDefaultCharSet Off
Order deny,allow
Allow from all
</Proxy>
ProxyPass / balancer://httpCluster/ stickysession=JSESSIONID
ProxyPassReverse / balancer://httpCluster/
stickysession=JSESSIONID
<Proxy balancer://httpCluster>
BalancerMember http:// <IP of liferay-node-01>:8080
route=node-01
BalancerMember http:// <IP of liferay-node-02>:8080
route=node-02
ProxySet lbmethod=byrequests
</Proxy>
</VirtualHost>
3.
Now edit the
httpd.conf
file located in the
<APACHE_HOME>/conf
directory
and add the following line at the bottom:
Include mod_proxy_http.conf
4.
Now edit the
server.xml
ile of
liferay-node-01
located in
node-01\
liferay-portal-6.1.1-ce-ga2\ tomcat-7.0.27\conf
, and add the
jvmRoute
attribute to the
<Engine>
tag as follows:
<Engine defaultHost="localhost" name="Catalina"
jvmRoute="node-01">
5.
Similarly, add the
jvmRoute
parameter in
server.xml
of
liferay-node-02
.
Here the value of
jvmRoute
will be
node-02
.
6.
Now restart both the Liferay Portal Servers and the Apache Web server and
test the configuration using the
http://<IP of Apache Web Server>
URL.
These steps are very similar to the previous option. The only difference is that we
are using the HTTP protocol. This connector allows us to establish an encrypted
connection between the web server and the Liferay Portal application server using
the HTTPS protocol.