October 28th, 2000, 11:16 AM
I'm trying make my homepage with some cgi script.
I'm worn out to have to open and show /logs/error.log file whenever cgi script raise error.
ASP or PHP redirect script error message to browser. But the script that I'm working with(python) cannot do like there.
Is there any option in Apache configuration allow redirect script error message(500)?
October 28th, 2000, 05:09 PM
>>Is there any option in Apache configuration allow redirect script error message(500)?
Start here -> http://www.apache.org/docs/mod/mod_cgi.html#scriptlog
But it doesn't do the redirection for you. If there are many users on the server, you need to somehow figure out which line to grep from the log and preferably putting a link on the 500 error page to link to the appropriate error message. The problem is that, it doesn't support individual log based on the user. If .htaccess is included in "Context: server config", it would be alot better. So at this time, you can only specify one common log.
[This message has been edited by freebsd (edited October 28, 2000).]