From fb3b85961e0a4cd2dc6edfe9a6fc251be37b7470 Mon Sep 17 00:00:00 2001 From: Pedro Miola Date: Fri, 11 Apr 2025 13:50:49 -0300 Subject: [PATCH 1/2] =?UTF-8?q?(feat):=20add=20explanations=20for=20enabli?= =?UTF-8?q?ng=20'enforce=20HTTP'=20option=20and=20removing=20'redirect=20H?= =?UTF-8?q?TTP=20to=20HTTPS'=20behavior=20in=20error=20documentation=20C?= =?UTF-8?q?=C3=B3digo:=2020566?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/services/support/http-error-status-codes.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx b/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx index f18647165d..2cee0b3a2e 100644 --- a/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx +++ b/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx @@ -144,6 +144,9 @@ This status code is a generic error message that often indicates issues with ser A 500 Internal Server Error usually requires action on the server's end to be fixed. In this case, you can refresh the page, clear browser cache and cookies, wait for a while, and check for updates from the website’s support or status page as options while the server is able to process your requests adequately. +-> [TECHWRITER TODO: (INSERT) (EXPLAIN HOW TO ENABLE 'ENFORCE HTTP' OPTION IN THE ORIGINS SETTINGS OF THE EDGE APPLICATION)] +-> [TECHWRITER TODO: (INSERT) (EXPLAIN HOW TO REMOVE 'REDIRECT HTTP TO HTTPS' BEHAVIOR IN THE RULES ENGINE SETTINGS)] + If the issue persists, contact the site owner to confirm that the system is stable or lacking exception handling. ### 502 Bad Gateway @@ -183,4 +186,4 @@ Some ways to troubleshoot this error: - Clear your browser cookies and cached data. - Use a different browser or device. Browser-specific issues or device configurations can lead to unexpected errors. - Wait and retry. Occasionally, the server might be temporarily unable to fulfill requests due to maintenance or other issues. -- If the issue persists, contact the site owner. +- If the issue persists, contact the site owner. \ No newline at end of file From f1cdedf53adfafba5c7d87462f8fdf65f34e2345 Mon Sep 17 00:00:00 2001 From: "gabriel.alves" Date: Sat, 11 Jul 2026 16:01:26 -0300 Subject: [PATCH 2/2] feat: add instructions for resolving 500 errors by enforcing HTTP and modifying Rules Engine behavior --- .../support/http-error-status-codes.mdx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx b/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx index 2cee0b3a2e..cc28f5dcff 100644 --- a/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx +++ b/src/content/docs/en/pages/main-menu/reference/services/support/http-error-status-codes.mdx @@ -144,8 +144,25 @@ This status code is a generic error message that often indicates issues with ser A 500 Internal Server Error usually requires action on the server's end to be fixed. In this case, you can refresh the page, clear browser cache and cookies, wait for a while, and check for updates from the website’s support or status page as options while the server is able to process your requests adequately. --> [TECHWRITER TODO: (INSERT) (EXPLAIN HOW TO ENABLE 'ENFORCE HTTP' OPTION IN THE ORIGINS SETTINGS OF THE EDGE APPLICATION)] --> [TECHWRITER TODO: (INSERT) (EXPLAIN HOW TO REMOVE 'REDIRECT HTTP TO HTTPS' BEHAVIOR IN THE RULES ENGINE SETTINGS)] +If your application is configured to redirect HTTP requests to HTTPS via **Rules Engine**, but the origin is also redirecting HTTPS back to HTTP, this creates a redirect loop that results in a 500 error. To resolve this, apply one or both of the following fixes: + +**To enforce HTTP between the edge and your origin:** + +1. Access [Azion Console](https://console.azion.com) > **Applications**. +2. Select your application. +3. Navigate to the **Origins** tab. +4. Select the origin you want to configure. +5. Under **Protocol Policy**, select **Enforce HTTP**. +6. Click **Save**. + +**To remove the Redirect HTTP to HTTPS behavior from Rules Engine:** + +1. Access [Azion Console](https://console.azion.com) > **Applications**. +2. Select your application. +3. Navigate to the **Rules Engine** tab. +4. Locate the rule that contains the **Redirect HTTP to HTTPS** behavior and click it to edit. +5. In the **Behaviors** section, remove the **Redirect HTTP to HTTPS** behavior. +6. Click **Save**. If the issue persists, contact the site owner to confirm that the system is stable or lacking exception handling.