Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Set HTTP Status code

by Anonymous Monk
on Mar 09, 2012 at 03:01 UTC ( [id://958604]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Set HTTP Status code
in thread Set HTTP Status code

I'm not quite sure what critical details you need...

Basically all details needed to reproduce the problem you're seeing

Are you running the program under mod_cgi? under mod_perl and ModPerl::Registry? What filename is the program saved under? What url is mapped to the filename?

Replies are listed 'Best First'.
Re^6: Set HTTP Status code
by molybtek (Novice) on Mar 09, 2012 at 03:45 UTC

    it is just saved as test.pl, it is run under mod_perl. No url mapping...

    test.pl works as expected, the custom ErrorDocument gets displayed.

    test.pl?query has 404 error, but custom ErrorDocument doesn't display, instead the error as specified above.

        Oops, copied the response from the original code instead of the test code. Anyway, response is the same apart from the location of the CGI file.

        I have looked at the two links provided, however, I don't think they apply to my problem.

        I want Apache to display the ErrorDocument, not don't display the ErrorDocument...

        Also the problem only appears when the server have mod_perl, using the CGI/CGI::Application module AND there is a query string in the URL...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found