Hello, Any help would be appreciated. If any of you had done this before or published on blogs or somewhere, please suggest your inputs.
Regards, Praveen On Thu, 16 Apr, 2020, 14:29 Praveen Kumar K S, <[email protected]> wrote: > Hello, > > Thanks for your response. I had gone through errordocument. > > I would like to rephrase my question. I'm looking for help on how to > dynamically handle error pages. I wrote a small cgi script. > > Below is error config. > ErrorDocument 404 "/cgi-bin/customerror.cgi" > > But httpd is printing the content of /cgi-bin/customerror.cgi incase of > 404 and not executing it. > > Below is customerror.cgi > #!/bin/sh > # > # customerror.cgi > echo ("Content-Type: text/html") > echo ("Status: $REDIRECT_STATUS") > echo "" > echo ("<html><head><title>Error</title><head>") > echo ("<body bgcolor=white>") > echo ("<font size=5 color=blue font=Arial>Sorry...there has been an > error.</font>") > echo ("<he noshade size=2>") > echo ("<blockquote>") > echo ("The error was: <font color=red>$REDIRECT_ERROR_NOTES</font>") > echo ("</blockquote>") > echo ("<he noshade size=2>") > echo ("</html>") > > Please let me know what could be wrong. In short, I'm looking to achieve > https://github.com/adriaanvanrossum/blog.adriaan.io/blob/gh-pages/_posts/2018-12-22-one-nginx-error-page-to-rule-them-all.md > > Regards, > PK > > > > On Thu, Apr 16, 2020 at 1:22 AM Christophe JAILLET < > [email protected]> wrote: > >> Le 15/04/2020 à 08:24, Praveen Kumar K S a écrit : >> >> Hello, >> >> I'm looking for some help in configuring custom error pages in httpd >> 2.4.39 >> >> I'm compiling httpd and running it as a container. If someone can help me >> with the manuals or documentation, it will be helpful. >> >> Regards, >> Praveen Kumar K S >> +91-9986855625 >> >> Hi, >> >> have you already looked at [1]? >> >> CJ >> >> [1]: https://httpd.apache.org/docs/2.4/en/mod/core.html#errordocument >> >
