Score:0

Returning custom HTTP status apache2

ru flag

I'm hosting a webpage with apache and would like to be able to return custom HTTP status codes on a certain page. PHP does this just fine with http_response_code($code) but once it gets to apache it fails with HTTP 500. I have found where the http responses are defined in the apache source, but is it possible to modify this in configuration and without recompilation?

E.g. what's the easiest way to get custom HTTP statuses in apache2?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.