Search results

  1. C

    Locomotive CMS ruby and Litespeed detect loop /dispatch.lsapi

    According above answer, then I changed my code to add header["Status"] = 302 but not work. And I have the question, that is "I can only change my code and there isn't the solution so that I can config LiteSpeed". Is that right?
  2. C

    Locomotive CMS ruby and Litespeed detect loop /dispatch.lsapi

    Simple, I only click button and use ajax to save the content. And in controller, I want to custom the Location Headers in response. Example: header["Location"] = path After then, in success callback of AJAX, to redirect location, I use: $.ajax( url: url, type: "application/json"...
  3. C

    Locomotive CMS ruby and Litespeed detect loop /dispatch.lsapi

    Is that the best solution? I want to use AJAX to get the success response and redirect to the location on javascript. Can I do it? How? Please help me. Thank you!
  4. C

    Locomotive CMS ruby and Litespeed detect loop /dispatch.lsapi

    I changed RewriteRule ^/.*$ /dispatch.lsapi [QSA,L] as above comment but not work. I found the problem as response_to :json def blahblah response_with @object, :location => "path" end Because I set location on the headers of the response, so the system have the error. And I follow the guide as...
  5. C

    Locomotive CMS ruby and Litespeed detect loop /dispatch.lsapi

    Hi guys, I'm using rails 3.2.21, locomotive CMS and LiteSpeed 4.2.21 I created Virtuals hosts and Context "Rack/Rails". In this context, I set URI is "/" and Location "[path-to]/myapp/ (Note: /myapp include public folder) In General tab, I set that Document Root is "[path-to]/myapp/" My site...
Top