Miguel Arroz a écrit :
Hi!
How can I configure the adaptor error pages, like the "The requested
application was not found on this server." one? I would like this to
point to a different, customized page.
For "unavailable" apps in your apache configuration you can add :
WebObjectsOptions redir=<redirection_url>
(ref
http://developer.apple.com/documentation/WebObjects/Deployment/Deploying_Applications/WebObjectsAdaptors/chapter_4_section_6.html#//apple_ref/doc/uid/TP30000062-BBCDGJGH
) it may not work for "application was not found".
But you can edit Adaptor/errors.h (in wonder adaptor source) to change
the NOT_FOUND_APP define in order to have another text displayed
(javascript for redirection).
Or edit Adaptor/transaction.c to replace: "resp =
resp_errorResponse(NOT_FOUND_APP, HTTP_NOT_FOUND);" by "resp =
resp_redirectedResponse("http://....../notfoundpage.html");" to have a
http redirect.
(rebuild the adaptor, restart apache)
Regards
Aurelien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]