LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Context with pcre strips first character?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2011, 10:22 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Default Context with pcre strips first character?

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]
Reply With Quote
  #2  
Old 02-10-2011, 10:47 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
Please provide your server environment info: LSWS version, OS version (32 bit or 64 bit), etc.
Reply With Quote
  #3  
Old 02-10-2011, 10:50 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Mac. not sure whether 32 or 64. I tested the latest version and the one before it.
Reply With Quote
  #4  
Old 02-10-2011, 11:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please try a force reinstall see if the problem is still there.
Reply With Quote
  #5  
Old 02-11-2011, 10:30 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
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!
Reply With Quote
  #6  
Old 02-11-2011, 10:50 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Default default mime type

In the Context settings there's a handy 'set default mime type' option. Is this settable on a per-server basis as well?
Reply With Quote
  #7  
Old 02-11-2011, 06:39 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,297
default mime type: can customize it at server level and can override it at vhost and in .htaccess.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:37 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.