Mobile app version of vmapp.org
Login or Join
Cofer257

: Getting the user back where they came from with mod_form_auth Using the mod_form_auth module in Apache HTTPD 2.4.3, I am looking for a way to have the user redirected to their original desired

@Cofer257

Posted in: #Authentication #Httpd

Using the mod_form_auth module in Apache HTTPD 2.4.3, I am looking for a way to have the user redirected to their original desired target after completing a login.

That is, if I have a

<Location /protected>
... form auth config here
</Location>


the user might browse to /protected/a, or to protected/b. In either case, they will be presented with the login form. However, as far as I can see, I must specific a single 'success' URL. I'm wondering if I'm missing some Apache feature that would allow me to, for example, cause the redirect to the login form go to something like:
login.html?origTarget=/protected/a

via some syntax on the AuthForLoginRequiredLocation statement?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer257

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

You need to use the AuthFormLocation directive.


The AuthFormLocation directive specifies the name of an HTML field
which, if present, will contain a URL to redirect the browser to
should login be successful.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme