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 run successfully, but have a minor bug. When I edit a page in locomotive CMS and click Save button then the client'll send request as JSON use Backbone to Server, and the server'll response with JSON.
Example server code in controller:
response_to :json
def blahblah
response_with @object
end
And at the client, I get error 500 internal server. And I see on litespeed, I get error "detect loop redirection: /dispatch.lsapi"
I follow the guide at "https://www.litespeedtech.com/suppo...wiki:other-ext-apps:ruby-on-rails-easy-config", and I add the Rewrite tab the rules:
RewriteCond %{HTTP:X-Requested-With} !^$
RewriteRule ^/ /dispatch.lsapi [QSA,L]
But, I click Save button that I mentioned above, I get the new error "maximum number of redirect reached"
Please help me.
Thank you!
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 run successfully, but have a minor bug. When I edit a page in locomotive CMS and click Save button then the client'll send request as JSON use Backbone to Server, and the server'll response with JSON.
Example server code in controller:
response_to :json
def blahblah
response_with @object
end
And at the client, I get error 500 internal server. And I see on litespeed, I get error "detect loop redirection: /dispatch.lsapi"
I follow the guide at "https://www.litespeedtech.com/suppo...wiki:other-ext-apps:ruby-on-rails-easy-config", and I add the Rewrite tab the rules:
RewriteCond %{HTTP:X-Requested-With} !^$
RewriteRule ^/ /dispatch.lsapi [QSA,L]
But, I click Save button that I mentioned above, I get the new error "maximum number of redirect reached"
Please help me.
Thank you!
Last edited: