On 2021-08-13 9:59 a.m., alchemist vk wrote:
Hi Eric, thanks for response.
I dont think its getting generated from any other external redirect, as I have only this alone config in my apache configuration file. And regarding HTML response, I think this is standard HTML format from apache.

Eric is far more experienced than I am, but I did notice in your original email:

Below is the response.
< HTTP/1.1 302 Found
< Date: Wed, 11 Aug 2021 21:38:00 GMT
< Server: Apache
< X-Frame-Options: DENY
< Location: https://{ip}/test_error_404.json
< Content-Length: 252
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a 
href="https://{ip}/test_error_404.json";>here</a>.</p>
</body></html>
* Closing connection #0

which to me suggests potential confusion between "HTTP/1.1 302 Found" for your test_error_404.json, but then gets a "HTML 2.0" 'moved' addition to it. I might start by grepping for (properly escaped) "<h1>Found</h1> <p>The document has moved" to find which piece of code (module, template, whatever) is writing the response (and closing connection #0 ??)

This of course assumes that your test_error_404.json is properly executable to output html

Best -- Paul





On Fri, Aug 13, 2021 at 5:00 PM Eric Covener <cove...@gmail.com <mailto:cove...@gmail.com>> wrote:

    On Fri, Aug 13, 2021 at 12:54 AM alchemist vk
    <alchemist...@gmail.com <mailto:alchemist...@gmail.com>> wrote:
     >
     > Any suggestions on above query?

    I think the redirect comes from another part of the configuration.
    Neither R=404 nor ErrorDOcument /... generates an external redirect.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    <mailto:users-unsubscr...@httpd.apache.org>
    For additional commands, e-mail: users-h...@httpd.apache.org
    <mailto:users-h...@httpd.apache.org>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to