I need your Help with below rewrite engine
----------------------------------------
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteLogLevel 1
RewriteCond %{HTTP_COOKIE} !.*userName.*
RewriteCond %{REQUEST_URI} ^/abc/.*\.htm.* [OR]
RewriteCond %{REQUEST_URI} ^/abc/setup.exe
RewriteRule ^/(.*) [P]
---------------------------------------
What this rewrite does is it checks for cookie named userName and if the cookie is not present in client browser anyone who types URL or it will be redirected to WebLogic server on port 7001 which invokes servLogin page which authenticates username and password from oracle Database and if authentication is successful it allows that particular user to access the link. Also it generates cookies so that as long as his/Her session is valid it won’t be authenticated again. This works fine but it having a serious performance impact on Web Server when this rewrite engine is ON CPU on Web server is always 0.0% idle even if abc link is not in use Don’t know Why anything wrong with this rewrite conf?
Please Help in resolving this rewrite performance issue.
I am ready to pay for consultancy $ if somebody helps me in resolving this configuration issue.
Thanks in advance
BS
----------------------------------------
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteLogLevel 1
RewriteCond %{HTTP_COOKIE} !.*userName.*
RewriteCond %{REQUEST_URI} ^/abc/.*\.htm.* [OR]
RewriteCond %{REQUEST_URI} ^/abc/setup.exe
RewriteRule ^/(.*) [P]
---------------------------------------
What this rewrite does is it checks for cookie named userName and if the cookie is not present in client browser anyone who types URL or it will be redirected to WebLogic server on port 7001 which invokes servLogin page which authenticates username and password from oracle Database and if authentication is successful it allows that particular user to access the link. Also it generates cookies so that as long as his/Her session is valid it won’t be authenticated again. This works fine but it having a serious performance impact on Web Server when this rewrite engine is ON CPU on Web server is always 0.0% idle even if abc link is not in use Don’t know Why anything wrong with this rewrite conf?
Please Help in resolving this rewrite performance issue.
I am ready to pay for consultancy $ if somebody helps me in resolving this configuration issue.
Thanks in advance
BS