Rewrite Line Limit

#1
Hey,

I would like to ask if there is any limit of numbers or characters for rewrite rules currently set for LiteSpeed Enterprise and OpenLiteSpeed

Regards,
Milutin
 

Pong

Administrator
Staff member
#2
I did not see any obvious restriction on this in our document, but large .htaccess file will certainly cause performance problem. The allowed .htaccess file size may be hard coded as well, we don't have that figure handy.

The question might turn to: what do you want to achieve? Any use case? Is that the best way to place thousands of lines of rewrite rules or choose some simple better alternative?
 

mistwang

LiteSpeed Staff
#5
Please turn on debug logging, so you will know at which line it stops.
Maybe it is due to a bug in LiteSpeed,
Please upgrade to latest build of 5.1.9, check if there is a core file under
/usr/local/lsws/bin/
directory.
forward us the core file along with lshttpd.5.1.9 binary, or, let us login to the server to check the core file.
 
#6
That last INFO line is where it stops.
It was with enabled DEBUG mode.
I tested it with Enterprise 5.1.9 as .htaccess its OK. (I can't test it here here via UI since its a production server)
So I tested it with OpenLSWS too so I put all from .htaccess to UI (Rewrite Section) and it ended on start parsing.
I assuming there is hardcoded limit with OpenLSWS since Enterprise is fine looks like.
 
Top