DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25543>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25543 mod_usertrack does not set the cookie if the request is reverse-proxied Summary: mod_usertrack does not set the cookie if the request is reverse-proxied Product: Apache httpd-2.0 Version: 2.0.48 Platform: Other OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: mod_usertrack AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Hello, we have httpd-2.0.48 installed which acts as a reverse proxy with mod_rewrite to backend servers which runs PHP. If an user accesses a proxied page the first time that arrives at the site, mod_usertrack does not set the cookie, although the cookie value appears in the log. This ends up in having lines referring to the same user with different cookie values in the log. This happens also when calling static content (i.e. an html page) from the backend, so it is not related to PHP. The test I have made is the following: 1) I created an HTML page on the backend 2) I have removed the cookie that is set by mod_usertrack from my browser 3) I opened the page through the frontend If I Look at the webserver log, filtering only the page I'm loading, for every page load a different cookie value appears in the log. Using Netscape cookie manager I discovered that the cookie is not received at all. Here is the configuration for the reverse proxy: <VirtualHost 194.177.116.167:80> ServerName www.venere.com CustomLog logs/venerecom.log combined_plus_webid env=!no_log # Cookie tracking CookieDomain .venere.com CookieExpires "1 years" CookieName WEB_ID CookieTracking on DocumentRoot /home/httpd/venerecom/ # This is a reverse proxy so proxyrequests should be off ProxyRequests off RewriteEngine on RewriteMap server prg:/etc/httpd/conf/lb/loadbalance.pl # Round Robin RewriteRule ^/(cgi/.*)$ to://${server:cgi}/$1 RewriteRule ^to://([^/]+)/(.*) http://$1/$2 [E=REAL_SERVER:$1,P,L] #### Whatever arrives here is handled by this server as a local file under DocumentRoot </VirtualHost> If you need more info let me know. Matteo Fago --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
