{"id":68482,"date":"2021-02-15T09:00:00","date_gmt":"2021-02-15T14:00:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=68482"},"modified":"2021-08-16T15:26:48","modified_gmt":"2021-08-16T19:26:48","slug":"apache-load-balancer","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/","title":{"rendered":"How to Configure Apache Load Balancer"},"content":{"rendered":"<p><strong>Load balancing<\/strong> is the process of distributing traffic across multiple servers for high-availability (HA) and elastic scalability. Many system administrators opt for dedicated software such as HAProxy to incorporate a proxy server. But with the mod_proxy_balancer module, you can easily use an unmanaged Linux cloud server as an Apache load balancer for domains or specified URIs. Then, you can add other unmanaged or cPanel servers to your <em>server pool<\/em> configuration with an additional line of code. Such server environments usually include a software or <a href=\"https:\/\/www.techradar.com\/news\/computing-components\/storage\/don-t-risk-your-server-data-go-for-raid-hardware-not-a-software-solution-1284534\" target=\"_blank\" rel=\"noreferrer noopener\">hardware RAID solution<\/a>.<\/p>\n\n\n\n<p class=\"alert alert-info\">cPanel load balancing isn\u2019t an option as of February 2021. However, there are many open discussions regarding future implementation.<\/p>\n\n\n\n<p>There are multiple load balancing methods. We\u2019ll cover round robin below but the Apache load balancer module can also distribute traffic requests by server load, readiness, or authorized traffic capacity.<\/p>\n\n\n\n<p>Continue reading to learn how to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#install\">Install Apache on the Load Balancer Server<\/a><\/li><li><a href=\"#module\">Enable Proxy Server Modules<\/a><\/li><li><a href=\"#load\">Configure Apache Load Balancing<\/a><\/li><li><a href=\"#balancer\">Configure Apache Load Balancer Manager<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install\">Install Apache on the Load Balancer Server<\/h2>\n\n\n\n<p>Log into SSH. Afterwards, install Apache web server on the load balancer server from your Linux distribution (distro) repositories (e.g. CentOS, Ubuntu, etc.).<\/p>\n\n\n\n<p class=\"alert alert-info\">For better server security, enable the ModSecurity Apache module as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"module\">Enable Proxy Server Modules<\/h2>\n\n\n\n<p>You\u2019ll need the following Apache modules for load balancing:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>proxy<\/li><li>proxy_http<\/li><li>Proxy_balancer (for Balancer Manager)<\/li><li>lbmethod_bytraffic (for round robin load balancing)<\/li><\/ul>\n\n\n\n<p>Ensure the necessary modules are enabled.<\/p>\n\n\n\n<p>CentOS:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">httpd -M | grep 'proxy\\|lbmethod'<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apache2ctl -M | grep 'proxy\\|lbmethod'<\/pre>\n\n\n\n<p>If any module listed above is not installed or enabled, enable it.<\/p>\n\n\n\n<p>CentOS:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yum install [module]<\/pre>\n\n\n\n<p>Debian:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2enmod [module]<\/pre>\n\n\n\n<p>Restart Apache if you had to enable a module.<\/p>\n\n\n\n<p>CentOS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart httpd<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Systemctl restart apache2<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"load\">Configure Apache Load Balancing<\/h2>\n\n\n\n<p>Create and edit a new load balancer file using Nano, Vim, Emacs, etc.<\/p>\n\n\n\n<p>CentOS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/httpd\/conf.d\/loadbalancer.conf<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Nano \/etc\/apache2\/conf-enabled\/loadbalancer.conf<\/pre>\n\n\n\n<p class=\"alert alert-info\">The name of the file doesn\u2019t matter. What matters is that the file is titled for you to easily remember what it is, is in the correct directory for your distro, and ends with the .conf file extension.<\/p>\n\n\n\n<p>Add the code block below, but replace the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>serverpool<\/code> with your preferred name for the balancer function<\/li><li>IP addresses with the IP, domain, or server hostname of your web servers along with the port number<\/li><li><code>sitePass<\/code> with the URI which will redirect to the server pool members<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;proxy balancer:\/\/serverpool&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BalancerMember http:\/\/1.2.3.4:80\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BalancerMember http:\/\/5.6.7.8:80\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ProxySet lbmethod=bytraffic\n&lt;\/proxy&gt;\nProxyPass \"\/site\" \"balancer:\/\/serverpool\/\"\nProxyPassReverse \"\/site\" \"balancer:\/\/serverpool\/\"<\/pre>\n\n\n\n<p class=\"alert alert-warning\">If you plan to add domains with a valid SSL certificate, you may need to install the <code>mod_ssl<\/code> Apache module as well.<\/p>\n\n\n\n<p>Save changes and restart Apache: <code>systemctl restart httpd<\/code> or <code>systemctl restart apache2<\/code><\/p>\n\n\n\n<p class=\"alert alert-info\">Terminal tip: Use your up arrow key to quickly reuse commands from your <code>.bash_history<\/code> file.<\/p>\n\n\n\n<p>Open the URL to your load balancer function in a web browser. It should display the website from one of the balancer members. When you refresh the page, it should show the next balancer member. If not, try a private browsing session.<\/p>\n\n\n\n<p class=\"alert alert-warning\">If your load balancer doesn\u2019t work, start troubleshooting with your Apache error_log.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"balancer\">Configure Apache Load Balancer Manager<\/h2>\n\n\n\n<p>The Apache Balancer Manager allows you to monitor and manage your load balancing configuration. This is optional but a light-weight monitoring solution. For more advanced options, look into <strong>security information and event management (SIEM)<\/strong> solutions such as <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/software\/how-to-install-elasticsearch\/\">ELK Stack<\/a> or <a href=\"https:\/\/www.inmotionhosting.com\/support\/security\/install-splunk\/\">Splunk<\/a>. Ensure you have <code>proxy_balancer_module<\/code> enabled before continuing below.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png\" alt=\"Edit Apache Load Balancer settings\" class=\"wp-image-68480\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-300x169.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-768x432.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1536x864.png 1536w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings.png 1920w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><figcaption>Apache Load Balancer Manager settings<\/figcaption><\/figure>\n\n\n\n<p>To get started, create and edit a new Apache configuration file.<\/p>\n\n\n\n<p>CentOS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/httpd\/conf.d\/loadbalancer-manager.conf<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/apache2\/conf-enabled\/loadbalancer-manager.conf<\/pre>\n\n\n\n<p class=\"alert alert-info\">Again, the name of the file doesn\u2019t matter, only the directory and .conf file extension.<\/p>\n\n\n\n<p>Add the following code block to the file, replacing \u201clb-manager\u201d with your preferred URI for accessing the page.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;location \"\/lb-manager\"&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SetHandler balancer-manager\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 allow from all\n&lt;\/location&gt;<\/pre>\n\n\n\n<p>By default, the page is publicly accessible. To configure Apache Load Balancer Manager securely, add the next code block above the <code>&lt;\/location&gt;<\/code> line. Then, use <code>htpasswd<\/code> to create user credentials to restrict the page to authorized users only. Change \u201cAuthName\u201d to match your location URI and \u201cAuthUserFile\u201d with the appropriate file path per your distro.<\/p>\n\n\n\n<p>CentOS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AuthType \"basic\"\nAuthName \"lb-manager\"\nAuthUserFile \/etc\/httpd\/htpasswd\nRequire valid-user<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AuthType \"basic\"\nAuthName \"lb-manager\"\nAuthUserFile \/etc\/apache2\/htpasswd\nRequire valid-user<\/pre>\n\n\n\n<p>Create a htpasswd file. Replace \u201cadmin\u201d at the end with an obscure username.<\/p>\n\n\n\n<p>CentOS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">htpasswd -c \/etc\/httpd\/htpasswd admin<\/pre>\n\n\n\n<p>Debian:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">htpasswd -c \/etc\/apache2\/htpasswd admin<\/pre>\n\n\n\n<p>You\u2019ll be prompted for a password. Enter the password twice. Save it in a password manager like KeePass.<\/p>\n\n\n\n<p>Add the following to the bottom of your load balancer configuration file, replacing \u201clb-manager\u201d to match your balancer manager location:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ProxyPass \"\/lb-manager\" \"!\"<\/pre>\n\n\n\n<p>Restart Apache.<\/p>\n\n\n\n<p>Open the URL in your web browser to access your balancer-manager:<br>http:\/\/[serverhostname]\/[lb-manager]\n\n\n\n<\/p><p>If you used <code>htpasswd<\/code>, you\u2019ll be prompted for an username and password before you can continue.<\/p>\n\n\n\n<p>Load Balancer Manager will display the following notable information:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Web server version<\/li><li>Whether Load Balancer changes are retained upon system reboot<\/li><li>LoadBalancer members, or work URLs, along with server load statistics<\/li><\/ul>\n\n\n\n<p>You can make changes by clicking the <em>balancer:\/\/[serverpoolname]<\/em> link. Options to edit balancer settings include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>LBMethod \u2013 bytraffic, heartbeat (ready capacity over time but not fully idle), bybusyness, byrequests (you\u2019ll need to have the appropriate modules enabled for the respective method)<\/li><li>Timeout<\/li><li>Failover Attempts<\/li><li>Disable Failover<\/li><li>Sticky Session to ensure users are bound to a specific server<\/li><\/ul>\n\n\n\n<p>By default, changes here don\u2019t persist on restart. To change this, add the line below to the bottom of your load balancer configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BalancerPersist On<\/pre>\n\n\n\n<p>Restart Apache. Upon refreshing Apache Load Balancer Manager, you\u2019ll see: \u201cBalancer changes will be persisted on restart.\u201d<\/p>\n\n\n\n<p>Learn more about server administration from our <a href=\"https:\/\/www.inmotionhosting.com\/support\/product-guides\/cloud-server\/\">Cloud Server Hosting Product Guide<\/a>.<\/p>\n\n\n<div class=\"jumbotron\"><p>Experience full control over your server environment and deploy the best operating and management systems that fit your needs with our reliable <a href=\"https:\/\/www.inmotionhosting.com\/cloud-vps\">Cloud VPS Hosting<\/a>!<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Load balancing is the process of distributing traffic across multiple servers for high-availability (HA) and elastic scalability. Many system administrators opt for dedicated software such as HAProxy to incorporate a proxy server. But with the mod_proxy_balancer module, you can easily use an unmanaged Linux cloud server as an Apache load balancer for domains or specified<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4355],"tags":[],"class_list":["post-68482","post","type-post","status-publish","format-standard","hentry","category-apache"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-15T14:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-16T19:26:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/canva-apache-load-balancer-manager.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Configure Apache Load Balancer\",\"datePublished\":\"2021-02-15T14:00:00+00:00\",\"dateModified\":\"2021-08-16T19:26:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\"},\"wordCount\":873,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png\",\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\",\"name\":\"Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png\",\"datePublished\":\"2021-02-15T14:00:00+00:00\",\"dateModified\":\"2021-08-16T19:26:48+00:00\",\"description\":\"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings.png\",\"width\":1920,\"height\":1080,\"caption\":\"Apache Load Balancer Manager settings\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure Apache Load Balancer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting","description":"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/","og_locale":"en_US","og_type":"article","og_title":"Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting","og_description":"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2021-02-15T14:00:00+00:00","article_modified_time":"2021-08-16T19:26:48+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/canva-apache-load-balancer-manager.jpg","type":"image\/jpeg"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Configure Apache Load Balancer","datePublished":"2021-02-15T14:00:00+00:00","dateModified":"2021-08-16T19:26:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/"},"wordCount":873,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png","articleSection":["Apache"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/","name":"Configure Apache Load Balancer Easily with 1 Code Block | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings-1024x576.png","datePublished":"2021-02-15T14:00:00+00:00","dateModified":"2021-08-16T19:26:48+00:00","description":"Configure Apache Load Balancer to distribute user requests equally across multiple servers and Balancer Manager to monitor load balancing.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/02\/apache-load-balancer-settings.png","width":1920,"height":1080,"caption":"Apache Load Balancer Manager settings"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/apache-load-balancer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Configure Apache Load Balancer"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4355,"name":"Apache","slug":"apache","link":"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=68482"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68482\/revisions"}],"predecessor-version":[{"id":82669,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/68482\/revisions\/82669"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=68482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=68482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=68482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}