This is a weird bug I came across and have not been able to find an answer to. Not too long ago, everything on my website that used the Ajax.Request to send and receive information (Such as edit in place or just basic little scripts) randomly stopped working. At first I thought it was something I must of done, so I attempted to revert to a past copy of the files I had used before (when it did work). However, that did not work either, all the scripts continued to fail. Recently I''ve been redoing all the files on my website using Xampp to do them on my computer. Whenever I do run the scripts on my computer, everything works fine, but whenever I put them on my actual web server, they begin to fail again. For example, I have version of light box on my computer that uses Ajax.Request to get the pages and display them, but it always comes back with this error: "Forbidden You don''t have permission to access /zz/landscape/textplacement.html on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. " Right now I''m not sure what to do, I''ve tried updating to the most recent version of Prototype and Script.aculo.us Is there something on my server that can stop it from working? All help is appreciated. (; --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey, Dan a écrit :> "Forbidden > You don''t have permission to access /zz/landscape/textplacement.html > on this server.It''s actually pretty clear: the files you put there don''t get permissions enough on the remote filesystem (likely they don''t have the Read right for the Other group). If you do have SSH (or, God forbid, Telnet) access to your remote filesystem, log into it, get to the root directory of your webapp, and try something like this (assuming there is no reason to actually hide stuff in there from HTTP access): chmod -R o+rX . This adds the read right and, for directories, the traversal right too. ''HTH -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I tried the method above, but it still didn''t work. Just recently I found a solution to the problem I was having though. It turns out my host had mod_security enabled, and before it must not have. I fixed it by adding: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> to my .htaccess and that fixed the problem :3 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---