-------------------
sudo apt-get install apache2 sudo /etc/init.d/apache2 restartSetting up HTTPS
-----------------
sudo a2enmod ssl sudo a2ensite default-sslSetting up load balancing modules
----------------------------------
sudo a2enmod proxy_balancer sudo a2enmod proxy_httpNow enable mod_proxy in Apache, and proxy requests to the application server by adding the example below to your Apache httpd.conf
# Put this after the other LoadModule directives LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
cd /etc/apache2/mods-available sudo vim proxy.conf
# set ProxyRequests off since we're only using the ProxyPass and ProxyPassReverse # directives. this keeps the server secure from # spammers trying to use your proxy to send email. ProxyRequests Off # Put this in the main section of your configuration (or desired virtual host, if using Apache virtual hosts) ProxyRequests Off ProxyPreserveHost OnAddDefaultCharset off Order deny,allow Allow from all #Allow from .example.com # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block ProxyVia OnOrder deny,allow Allow from all
sudo apt-get install libapache2-mod-proxy-html
cd /usr/local/apache2/confAdd the below line to httpd.conf
Include conf/extra/httpd-proxy-balancer.conf
Restart and reload the server
------------------------------------------------
sudo service apache2 restart sudo service apache2 reload
something is missing i.e loadbalance configuration is not ther
ReplyDeleteHi,
DeleteI can not understand your comment completely. Could you rephrase it, or provide the error message?
I am using 32 bit ubuntu so i had to figure out which directories to include. It worked pretty nicely. Kudos to you for posting these steps. Thanks.
ReplyDeleteGlad to hear that this was useful for you. :)
DeleteHi,
ReplyDeletei have tried to follow those steps but this /usr/local/apache2/conf is no find
and when i tried to Include conf/extra/httpd-proxy-balancer.conf
the error comes