Neelesh Ves
2011-Apr-08 09:09 UTC
New URLs not working on live apache but on webrick its working fine.
Here, I got a project for maintenance. I am told to create new feature to delete entry comments. I completed this feature easily. using ajax with DELETE method. But I found it is not working on the live server in case of using apache. In live server if I use webrick it is working perfectly in server as well as in my local server. all other URL,functionality 1. One more thing I want to let you know , URL is like http://server-url.com.br/sistema/databases/96/entries (sistema is symbolic-link) 2. declarative_authorization is used in the project . Can it be the reason? But I am logged in as admin. What could be the reason!! please help me?? =========================================== Description: when I click on delete comment->request to server (method: delete using ajax)-> No response from the apache server.(loading---) Proper response from webrick server.(OK.200) Note: I have checked both apache error_log and production.log , not found exact error... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Bryan Crossland
2011-Apr-08 15:59 UTC
Re: New URLs not working on live apache but on webrick its working fine.
On Fri, Apr 8, 2011 at 4:09 AM, Neelesh Ves <cis.dev21-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Here, I got a project for maintenance. I am told to create new feature > to delete entry comments. I completed this feature easily. using ajax > with DELETE method. But I found it is not working on the live server > in case of using apache. In live server if I use webrick it is > working perfectly in server as well as in my local server. all other > URL,functionality > > 1. One more thing I want to let you know , URL is like > http://server-url.com.br/sistema/databases/96/entries (sistema is > symbolic-link) > 2. declarative_authorization is used in the project . Can it be the > reason? But I am logged in as admin. > > > What could be the reason!! please help me?? > > ===========================================> > Description: > when I click on delete comment->request to server (method: delete > using ajax)-> > No response from the apache server.(loading---) > Proper response from webrick server.(OK.200) > > Note: I have checked both apache error_log and production.log , not > found exact error...After deploying your code to production did you restart Apache? B.>-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Neelesh Ves
2011-Apr-11 06:10 UTC
Re: New URLs not working on live apache but on webrick its working fine.
Hi Bryan, I got the solution, 1. I had problem with my routing . 2. Also declarative_authorization was telling me to fallow their rules (restricting variable names...) and I used "Delete" method in jQuery Ajax.Due these all above problem I was not able to run my code into live server. Now its ok. RESOLVED>THANKS... Thanks. On Fri, Apr 8, 2011 at 9:29 PM, Bryan Crossland <bacrossland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> On Fri, Apr 8, 2011 at 4:09 AM, Neelesh Ves <cis.dev21-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Here, I got a project for maintenance. I am told to create new feature >> to delete entry comments. I completed this feature easily. using ajax >> with DELETE method. But I found it is not working on the live server >> in case of using apache. In live server if I use webrick it is >> working perfectly in server as well as in my local server. all other >> URL,functionality >> >> 1. One more thing I want to let you know , URL is like >> http://server-url.com.br/sistema/databases/96/entries (sistema is >> symbolic-link) >> 2. declarative_authorization is used in the project . Can it be the >> reason? But I am logged in as admin. >> >> >> What could be the reason!! please help me?? >> >> ===========================================>> >> Description: >> when I click on delete comment->request to server (method: delete >> using ajax)-> >> No response from the apache server.(loading---) >> Proper response from webrick server.(OK.200) >> >> Note: I have checked both apache error_log and production.log , not >> found exact error... > > > After deploying your code to production did you restart Apache? > > B. > >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.