From: Graham Leggett
- APR_HOOK_STRUCT( - APR_HOOK_LINK(do_something) - ... - ) +APR_HOOK_STRUCT( + APR_HOOK_LINK(do_something) + ... +)@@ -93,11 +93,11 @@ something like this:
- void ap_run_do_something(request_rec *r, int n) - { - ... - do_something(r, n); - } +void ap_run_do_something(request_rec *r, int n) +{ +... +do_something(r, n); +}@@ -139,10 +139,10 @@ like so:
- int n, ret; - request_rec *r; +int n, ret; +request_rec *r; - ret=ap_run_do_something(r, n); +ret=ap_run_do_something(r, n);@@ -157,11 +157,11 @@ of the correct type:
- static int my_something_doer(request_rec *r, int n)@@ -172,16 +172,16 @@ structure:
- { - ... - return OK; - } +static int my_something_doer(request_rec *r, int n)
+{ + ... + return OK; +}
- static void my_register_hooks() - { - ap_hook_do_something(my_something_doer, NULL, NULL, APR_HOOK_MIDDLE); - } - - mode MODULE_VAR_EXPORT my_module = - { - ... - my_register_hooks /* register hooks */ - }; +static void my_register_hooks() +{ + ap_hook_do_something(my_something_doer, NULL, NULL, APR_HOOK_MIDDLE); +} + +mode MODULE_VAR_EXPORT my_module = +{ + ... + my_register_hooks /* register hooks */ +};@@ -216,12 +216,12 @@ before we do, then we'd hook as follows:
- static void register_hooks() - { - static const char * const aszPre[] = { "mod_xyz.c", "mod_abc.c", NULL }; +static void register_hooks() +{ + static const char * const aszPre[] = { "mod_xyz.c", "mod_abc.c", NULL }; - ap_hook_do_something(my_something_doer, aszPre, NULL, APR_HOOK_MIDDLE); - } + ap_hook_do_something(my_something_doer, aszPre, NULL, APR_HOOK_MIDDLE); +}diff --git a/docs/manual/mod/mod_auth_form.html.en b/docs/manual/mod/mod_auth_form.html.en index 5dd2c7e41b3..65f95419e2c 100644 --- a/docs/manual/mod/mod_auth_form.html.en +++ b/docs/manual/mod/mod_auth_form.html.en @@ -477,9 +477,10 @@ lower level modules
The AuthFormLoginRequiredLocation
directive
- specifies the URL to redirect to should the user not be authorised to view a page. By default,
- if a user is not authorised to view a page, the HTTP response code HTTP_UNAUTHORIZED
- will be returned with the page specified by the
+ specifies the URL to redirect to should the user not be authorised to view a page. The value
+ is parsed using the ap_expr syntax before being sent to the client.
+ By default, if a user is not authorised to view a page, the HTTP response code
+ HTTP_UNAUTHORIZED
will be returned with the page specified by the
ErrorDocument
directive. This directive overrides this
default.
The AuthFormLoginSuccessLocation
directive
- specifies the URL to redirect to should the user have logged in successfully. This directive
- can be overridden if a form field has been defined containing another URL using the
- AuthFormLocation
directive.
AuthFormLocation
directive.
Use this directive if you have a dedicated login URL, and you have not embedded the destination page in the login form.
@@ -520,7 +522,9 @@ lower level modulesThe AuthFormLogoutLocation
directive
- specifies the URL of a page on the server to redirect to should the user attempt to log out.
When a URI is accessed that is served by the handler form-logout-handler
,
the page specified by this directive will be shown to the end user. For example: