I have created a daemon process such that each client process connects to the daemon server process. This daemon process gets the authentication information from another daemons running on the system. The purpose of this daemon process is to control another CGI script and provide authentication details to it, so that no separate authentication is needed by that CGI script. The CGI script does its own functions using database handling. But, it needs authentication information from the daemon process.
I am redirecting the url of the CGI script to the daemon process url using mod_rewrite rule in .htaccess. For example: If a request is made to the following url:
In abc directory, I use .htaccess to rewrite the url towards the daemon process, as follows:
RewriteRule (.*) /xyz/daemon_process.pl/$1 [P]
Hence, the above request is redirected to daemon_process and user authentication is achieved. Once authentication has been done, I want to execute the first url:
which is not possible, as it again redirects to the daemon process. I need to execute the above url after that authentication has been done by the daemon process. Any help will be highly appreciated.