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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > vhconf charecter limit or number of lines limit?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2007, 12:49 PM
slimecrab slimecrab is offline
Member
 
Join Date: Aug 2007
Posts: 11
Unhappy vhconf charecter limit or number of lines limit?

i've created a vhconf file with 1517 lines

1470 of them are RawriteRules

the rest are whitespace or other necessary xml configuration

on line 1517 my redirect gets cut off after the first four charecters of what i am trying to redirect to, for instance:

RewriteRule ^/[^/]+/16637085/?(.*) http://www.cnn.com

the redirect does not work, and the error log shows this: => Result URI: 'http'

where as for all the the other working rewrite rules it says => Result URI: 'http://www.cnn.com/'

i changed the http://www.cnn.com to just "blahhhhh" and the error log showed the result uri as "blah" so its just cutting off the redirection target after 4 charecters

anymore rawrite rules i write after this line are completely ignored, and the logs dont even show me trying to hit them when i put them in my browser.

is there a maximum charecter limit in the vhconf file, or a maximum line limit, or something like that?

i was using standard but upgraded to enterprise demo to see if that would help and i have the same issue there.

can anyone help? i'm baffled.
Reply With Quote
  #2  
Old 08-17-2007, 01:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Yes, there is a limit for each configuration entry. We will increase the limit in next release.

But, 1470 lines of rewrite rules is too much, It will slowdown the server a lot. If possible, you can use a rewrite map to simplify the rewrite rules, and it will run a lot faster.
Reply With Quote
  #3  
Old 08-17-2007, 01:54 PM
slimecrab slimecrab is offline
Member
 
Join Date: Aug 2007
Posts: 11
could you explain what this limit is and how it works exactly?

if its a limit for "each configuration entry", and not a "total number of entries" then this wouldnt be causing my problem, because the redirect lines im using are as short as possible

Quote:
Originally Posted by mistwang View Post
Yes, there is a limit for each configuration entry. We will increase the limit in next release.

But, 1470 lines of rewrite rules is too much, It will slowdown the server a lot. If possible, you can use a rewrite map to simplify the rewrite rules, and it will run a lot faster.
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 02:51 PM.



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