Thanks - that makes sense, using a test along the lines of

print "Content-Type: text/html\n";
print "Status: 302 Moved\nLocation: http://www.mydomain.com/test.cgi\n\n";;
print "\n"; 

Seems to do what I want.

I just wasn't sure what the syntax in the header should be.

Alan

Alan Wilson
Icetrak Ltd | v:08454560561 | f:08708895005 | e:[email protected]

-----Original Message-----
From: André Warnier [mailto:[email protected]] 
Sent: 15 June 2009 12:31
To: [email protected]
Subject: Re: [us...@httpd] Custom Error Handling

> Is this possible and if so, what part of Apache do I need to change ?
>  
> Hope the request makes sense !
>  
Yes and no.
Yes, in the sense that you can do this.
No, in the sense that it is not at the Apache level that you must do it, but
at the level of your cgi-bin program.
It is that one that should return a HTTP status different from 'OK'.
And if you return a code other than 200, you should check which is the
proper code to return according to the HTTP protocol, not just invent one.
See here : http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
   "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to