{"id":1260,"date":"2020-07-14T10:11:48","date_gmt":"2020-07-14T10:11:48","guid":{"rendered":"http:\/\/ubiq.co\/tech-blog\/?p=1260"},"modified":"2025-08-18T05:15:46","modified_gmt":"2025-08-18T05:15:46","slug":"fix-504-gateway-timeout-error-apache","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/","title":{"rendered":"How to Fix 504 Gateway Timeout Error in Apache"},"content":{"rendered":"<p>504 Gateway Timeout Error occurs in Apache when it is acting as a proxy server and times out while waiting for a response from back end web servers. Here&#8217;s how to fix 504 Gateway Timeout error in Apache.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#What_is_a_504_Gateway_Timeout_Error_in_Apache\" >What is a 504 Gateway Timeout Error in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#How_to_Fix_504_Gateway_Timeout_Error_in_Apache\" >How to Fix 504 Gateway Timeout Error in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#1_Server_is_Down\" >1. Server is Down<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#2_DNS_Issue\" >2. DNS Issue<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#3_Disable_CDN\" >3. Disable CDN<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#4_Upgrade_Server\" >4. Upgrade Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#5_Network_Connectivity\" >5. Network Connectivity<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#6_Firewall_Issues\" >6. Firewall Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#7_Spams_Bots_DDOS_attack\" >7. Spams, Bots, DDOS attack<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#8_Faulty_plugins_or_Buggy_Code\" >8. Faulty plugins or Buggy Code<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_a_504_Gateway_Timeout_Error_in_Apache\"><\/span>What is a 504 Gateway Timeout Error in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When you use Apache as proxy server to direct incoming requests to one or more back-end web servers, sometimes it might timeout while waiting for a response from a web server. In such cases, Apache will give a 504 Gateway Timeout error. It can occur due to various reasons such as application bugs, faulty plugins, etc. Basically, the Apache proxy server keeps waiting for a response from the web server, and since it doesn&#8217;t receive a response even after a long time, it times out.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Fix_504_Gateway_Timeout_Error_in_Apache\"><\/span>How to Fix 504 Gateway Timeout Error in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here&#8217;s how to fix 504 Gateway Timeout error in Apache<\/p>\n<h2><span class=\"ez-toc-section\" id=\"1_Server_is_Down\"><\/span>1. Server is Down<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>One of the most common reasons for 504 Gateway Timeout error is that the back end server is unreachable, since it is down for maintenance, or because it is overloaded with requests.<\/p>\n<p>In such cases, website visitors can simply refresh the page to see if it starts working again.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_DNS_Issue\"><\/span>2. DNS Issue<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/www.cloudflare.com\/learning\/dns\/what-is-dns\/\">DNS<\/a> issue can happen on server-side or client side. In case of server side DNS problems, it may be because your domain name doesn&#8217;t resolve to an IP. This can happen if you have changed your IP address or migrated your website to a new IP. Depending on TTL value of DNS records, it can take anywhere from 5 minutes to 24 hours.<\/p>\n<p>On client side, it can be fixed by flushing your local DNS.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_Disable_CDN\"><\/span>3. Disable CDN<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If your website uses CDN service, then sometimes the CDN may have issues causing Apache to return 504 Gateway Timeout error. In such cases, simply disable your CDN and see if it works.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_Upgrade_Server\"><\/span>4. Upgrade Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If your back end server is overloaded, it can result in 504 Gateway Timeout, since it won&#8217;t be able to respond to incoming requests, causing them to timeout. In such cases, find out if you need to upgrade your server to a more powerful configuration to fix 504 gateway timeout error in Apache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_Network_Connectivity\"><\/span>5. Network Connectivity<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Apache will also give 504 Gateway timeout even if there are network connectivity issues between proxy server and web server. Log into your proxy server&#8217;s host and try connecting to web server via curl or ping command.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6_Firewall_Issues\"><\/span>6. Firewall Issues<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If your website firewall is not properly configured, it can prevent proper connection and result in this error. So check your firewall logs to see if there is any sudden spike in request blockages.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7_Spams_Bots_DDOS_attack\"><\/span>7. Spams, Bots, DDOS attack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes malicious attackers can bring down your web server by sending too many requests to it, or by sending really slow requests to it. Monitor your traffic to see if there is an spike. Enable mod_evasive in Apache to automatically block spam, bots and DDOS attack, and fix 504 Gateway Timeout error in Apache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8_Faulty_plugins_or_Buggy_Code\"><\/span>8. Faulty plugins or Buggy Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes faulty\/poorly configured plugins or buggy code can slow down or bring down your web server, causing your Apache proxy to return 504 Gateway Timeout. In this case, you will have to analyze server logs to find out which requested URL is causing this error and fix it accordingly.<\/p>\n<p>Hopefully, the above tips will help you fix 504 Gateway Timeout Error in Apache web server.<\/p>\n<p><a href=\"http:\/\/ubiq.co\/\">Ubiq<\/a>\u00a0makes it easy to visualize data in minutes, and monitor in real-time dashboards.\u00a0<a href=\"http:\/\/ubiq.co\/accounts\/register\">Try it<\/a>\u00a0Today!<\/p>\n<p>Also read:<br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/apache-load-balancer-configuration\/\">How to Configure Apache Load Balancer<\/a><br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/set-access-control-allow-origin-cors-headers-apache\/\">How to Set CORS in Apache Server<\/a><br \/>\n<a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-redirect-all-pages-to-new-domain\/\">How to Redirect All Pages to New Domain in Apache<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here&#8217;s how to fix 504 gateway timeout error in Apache.<\/p>\n","protected":false},"author":1,"featured_media":1271,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[103],"class_list":["post-1260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-504-gateway-timeout"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here&#039;s how to fix 504 gateway timeout error in Apache.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here&#039;s how to fix 504 gateway timeout error in Apache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-14T10:11:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-18T05:15:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Fix 504 Gateway Timeout Error in Apache\",\"datePublished\":\"2020-07-14T10:11:48+00:00\",\"dateModified\":\"2025-08-18T05:15:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/\"},\"wordCount\":609,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1\",\"keywords\":[\"504 gateway timeout\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/\",\"name\":\"How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1\",\"datePublished\":\"2020-07-14T10:11:48+00:00\",\"dateModified\":\"2025-08-18T05:15:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here's how to fix 504 gateway timeout error in Apache.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1\",\"width\":1460,\"height\":730,\"caption\":\"fix 504 gateway timeout error in apache\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/fix-504-gateway-timeout-error-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix 504 Gateway Timeout Error in Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI","description":"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here's how to fix 504 gateway timeout error in Apache.","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:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI","og_description":"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here's how to fix 504 gateway timeout error in Apache.","og_url":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-07-14T10:11:48+00:00","article_modified_time":"2025-08-18T05:15:46+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png","type":"image\/png"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Fix 504 Gateway Timeout Error in Apache","datePublished":"2020-07-14T10:11:48+00:00","dateModified":"2025-08-18T05:15:46+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/"},"wordCount":609,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1","keywords":["504 gateway timeout"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/","url":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/","name":"How to Fix 504 Gateway Timeout Error in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1","datePublished":"2020-07-14T10:11:48+00:00","dateModified":"2025-08-18T05:15:46+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"504 Gateway Timeout error occurs when your proxy server times out while waiting for a response from web server. Here's how to fix 504 gateway timeout error in Apache.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1","width":1460,"height":730,"caption":"fix 504 gateway timeout error in apache"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/fix-504-gateway-timeout-error-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix 504 Gateway Timeout Error in Apache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/07\/504-gateway-timeout-apache.png?fit=1460%2C730&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-kk","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=1260"}],"version-history":[{"count":15,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1260\/revisions"}],"predecessor-version":[{"id":9187,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/1260\/revisions\/9187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/1271"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=1260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=1260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=1260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}