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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Rails Subdomain Caching

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-21-2009, 02:05 PM
ideaoforder ideaoforder is offline
Member
 
Join Date: Jul 2008
Posts: 28
Default Rails Subdomain Caching

Hello,

I'm running a Rails app that uses subdomains for accounts--so each subdomain needs its own cache. I have Rails setup to cache like so:

http://subdomain.myapp.com/ -> /public/cache/subdomain/

How do I setup Litespeed to serve these cached pages?

In nginx, this would look something like:

if (-f $document_root/cache/$host/$uri/index.html) {
rewrite .? /cache/$host/$uri/index.html break;
}

if (-f $document_root/cache/$host/$uri.html) {
rewrite .? /cache/$host/$uri.html break;
}

if (-f $document_root/cache/$host/$uri) {
rewrite .? /cache/$host/$uri break;
}

How would this look in Litespeed? And where would I go to change this setting?

Thanks!
Reply With Quote
 

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:23 AM.



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