hi, i am building a web server-client system. my web-server also has an authentication system where the registered users use a login page to authenticate themseleves.once they do,the proxy.pac gives them the proxy. right now i am looking at a scenario where an unauthenticated user tries to log onto say www.google.com or www.webmasterworld.com ...he should be redirected to a default login page(http://10.219.80.2/login.html-this is my websever url). could somebody tell me how it can be done? thanx regards, manjunath
If you will describe your project in more detail, you may get some help. I read your description, but I can't really tell what you are trying to do -- what function resides on what server, and how it is implemented. As such, I can't tell if the solution will be inside Apache or require a custom-scripted solution, or a mixture of both. Perhaps you could invoke mod_proxy if the user is not authenticated, and "map" all external URLs to a single internal "Please log in" page.
As written, your code will redirect "mydomain.com" to "mydomain.com" using an external redirect. This results in an "infinite loop", so a page is never served (check your server error log for the message "Redirection limit exceeded..."). If you will post your code and a more detailed description of your goal in your original thread, you will probably get better advice.