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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Using context directives for static stuff of Rails app

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2008, 04:58 AM
ostraaten ostraaten is offline
Member
 
Join Date: Nov 2007
Posts: 17
Default Using context directives for static stuff of Rails app

Hi,
I have some static files in my Rails application that I don't want LiteSpeed to handle with the Rails module, it should just be served as static content.

I have configured it as below. Is this correct? I assigned the Rails context last in the ordering (position 7).

Rails / 7
Static /wikis/ 6
Static /bp/ 5
Static /images/ 4
Static /javascripts/
Static /stylesheets/
Static /uploads/ 1

Another question I have concerns page caching. Ideally I would also like to have page fragments served as static content. So this would mean for example that I add something like /pages/view/ before / (the Rails context). This would mean that LiteSpeed will serve the request from /pages/view unless the file cannot be found. If it isn't found the request will be handled by the Rails module (and the cache file will be created).

Thanks and Regards,
Onno
Reply With Quote
  #2  
Old 09-01-2008, 07:43 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
By default, a request will be handled by Rails when file does not exist. the order of static context does not matter unless it is a regex matching context.
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 03:52 AM.



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