Forum OpenACS Development: Re: Error: return: failed to redirect

Collapse
Posted by Dave Bauer on
AOLserver can't find the file you have specified for NotFoundResponse.

So when you get an HTTP request for a file that does not exist, it redirects to the file specified for NotFoundResponse, can't find it, and redirects to the file specified for NotFoundResponse, until it hits the redirect recursion limit.

The file should be under openacs/www/global/file-not-found.html according to your configuration.

Collapse
Posted by Iuri Sampaio on
Right, I can see that.

But nobody can access my server. It is under a intranet and I am not attempting to access http pages

My thoughts are that i hit a non-existent page once and aolserver got stuck on that loop.

Furthermore, I changed the paths in the aolserver parameters in the config.tcl file.

ns_param NotFoundResponse "${serverroot}/www/global/file-not-found.html"
ns_param ServerBusyResponse "${serverroot}/www/global/busy.html"
ns_param ServerInternalErrorResponse "${serverroot}/www/global/error.html"

Under oacs root directory within www/ directory, there's a default global directory. However, i still get errors as if aolserver hasn't recgnized the changes.
ps. i restarted the service.

[11/Sep/2009:10:56:08][21007.3032509360][-conn:openacs::0] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3
[11/Sep/2009:10:56:19][21007.3031456688][-conn:openacs::1] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3
[11/Sep/2009:10:56:29][21007.3030404016][-conn:openacs::2] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3
[11/Sep/2009:10:56:40][21007.3029351344][-conn:openacs::3] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3
[11/Sep/2009:10:56:57][21007.3028298672][-conn:openacs::4] Error: return: failed to redirect 'GET /global/file-not-found.html': exceeded recursion limit of 3