Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

access_log to track failed logins

$
0
0
I have a login page that redirects (actually appends the parameter
"?error=true" to the URL and lets the user try again).

I was trying to re-define "access_log" with a full path and (for now)
"combined" to a separate file in that location in hopes of tracking
failed logins in a separate log. Originally, I had a regex nested
location for the error redirect, then I took it out and put it in its
own location. Nothing seems to work.

This doesn't seem to work at all. An empty log gets created at startup,
but nothing ever gets written there. Is it because the access logging
is already done by the time the location is determined?

How can I somehow log when someone accesses the "login" page with the
"error=true" parameter on the URL?

Thanks,
AJ

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>