Rails context can't disable rewrite

#1
I wanted to keep the handy rails context, but handle the rewrites myself (because I wanted to add a check to skip the dispatch rewrite if the URI starts with /images due to lots of missing images on my server).

I'd then add my own rewrite rules to route to dispatch.lsapi in the virtual hosts rewrite section.

So I set the Rails context's "Enable rewrite" and "Rewrite Inherit" to No.

I disabled my virtual host rewrites to test. restarted, and it's still doing the rails rewrites for me.

It'd be nice if disabling this worked, so we could customize it ourselves without having to resort to a custom external app/script handler (which I've never been able to figure out)

Thanks!
 

mistwang

LiteSpeed Staff
#3
"Rails" context uses rails dispatcher as custom 404 handler, do not use rewrite rules.
Just use rewrite to redirect missing files to an existing file should work.
 
Top