sharing data between two different apache modules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hey folks,
I need the assistance from you on a problem with mod_perl and mod_proxy. Please help.
This is what I am trying or aiming to do.
I have an Apache 2.0 server running mod_proxy with reverse proxy. So all the request from
http://www.foo.com gets proxied to
http://baa.com. So far so good and this was a piece of cake. I want to now try out something else.
- The user will still type
http://foo.com. This time a mod_proxy handler will display a login page. In fact this my own authentication handler written in mod_perl. It authenticates using a back end system by accepting username and password from the login page.
- If authentication is NOT successful, it displays the login page again.
- But if the authentication is successful a session cookie is created.
- The mod_perl login handler job should end there.
I want the mod_proxy to ProxyPass to the url in the following format
if the authentication is a success and for all subsequent request should retain the session as I do not want to show the login page to the the user again.
How should I approach the problem especially reading data from the mod_perl authentication handler and passing it as a query parameter for the proxy URL?
Anticipating a "hint" solution from anybody!!
Thanks a lot,
Atanu
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]