Mantis - Resin
Viewing Issue Advanced Details
3354 minor always 02-24-09 13:16 03-18-09 15:33
ferg  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003354: request-secure affecting logging
(rep by Tamas Pinter)

I'm using external loadbalancer/ssl proxy with resin-3.1.8.
To get https redirects working I`m using rewrite-dispatch to match
a specific header in the incoming request to set the request-secure
variable as advised here:

http://maillist.caucho.com/pipermail/resin-interest/2007-June/001125.html [^]

Redirects are working, but request logging stops when I set request-secure.

resin.conf:

   <host-default>
     <access-log path="logs/access.log"
           format='%{X-Forwarded-For}i %h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
           rollover-period="1W"
           exclude="check.txt"/>
   </host-default>

   <host id="my.site.net" root-directory="/my.site.net">
     <web-app id="/" document-directory="www"/>
     <rewrite-dispatch>
       <set request-secure="true">
         <when header="X-Forwarded-For"/>
       </set>
     </rewrite-dispatch>
   </host>

The site is working, but no logs in RESIN_HOME/logs/access.log or
/my.site.net/logs/access.log
If I remove the rewrite-dispatch logging is working.
Any advice ?


Notes
(0003893)
ferg   
03-18-09 15:33   
server/1kk7