in reply to Custom Login Page using .htaccess
I think the only way you could do it at the server level would be do it with a mod_perl handler. Or you can just set up your script to do it's own authentication and authorization.
-Lee
"To be civilized is to deny one's nature."