Context with pcre strips first character?

#1
3 Contexts (#1 static, below, #2 dummy one b/c it wouldn't let me sort with jsut two - another bug?, #3 Rails). I've disabled rewrite in my virtual host for testing.

Static context
exp:^/(login/get_online|feature/box)
location: /public/$1
Enable expires: Yes
Expires Default: M180
Enable Rewrite: No

Requsted /login/get_online

Log file shows:
2011-02-10 10:15:05.055 INFO [127.0.0.1:64963-0#ap] File not found [//ublic/login/get_online]
2011-02-10 10:15:05.675 INFO [127.0.0.1:64963-3#ap] File not found [//ublic/feature/box]
2011-02-10 10:15:06.197 INFO [127.0.0.1:64968-15#ap] File not found [//ublic/login/get_online]
 
#5
Forcing a reinstall seems to have fixed the missing-character problem. Strange!

There's definitely a bug with the reordering of the contexts though. Frustrating trying to get them in a particular order. + sometimes moves up or down, and changing the order direction confuses things. Sometimes when I get it set and restart, the order isn't what I'd set.

Also, it'd be nice to add a line to the log about which context is being used (perhaps the debug logging?). Right now I don't think there's anything. Debug statements about the PCRE tests would be handy too.

2011-02-11 10:29:08.574 NOTICE Toggle debug logging request from admin interface!
2011-02-11 10:29:11.905 NOTICE [127.0.0.1:58393-0#ap] Content len: 0, Request line: 'GET /login/get_online HTTP/1.1'
2011-02-11 10:29:11.905 INFO [127.0.0.1:58393-0#ap] Cookie len: 461, cookies_removed
2011-02-11 10:29:11.905 INFO [127.0.0.1:58393-0#ap] File not found [/Users/inspire/Dropbox/newap/public/login/get_onlineBLAH]


Even with debug logging, it seems my context never gets checked unless I disable my vhost rewrites (probably because they get rewritten to either 'Last' or dispatch.fcgi)

Toggling debug logging on should send you to the 'browse server log' page, not back to the homepage.

Thanks for a great project!
 
Top