url rewritting errors

Topics: Other Ruby On Rails Related Topics, User Forum
Feb 27, 2008 at 5:49 PM
Hi,friends! First of all,thanks for you guys who have made contributions to this great tool,I really appretiate you work and the trouble shooting.
My situations here: I can get the right answer when the url is like http://localhost/dispatch.fcgi?controller,but when the url is written in rails way like Http:///localhost/conntroller,Http:///localhost/conntroller/action,or Http:///localhost/conntroller/action/id,i got the 404 error .it cann't find the pages!
and i also get the fastcgi.crash.log with messages repeating:
28/Feb/2008:00:00:08 :: 2384 starting
28/Feb/2008:00:00:09 :: 3580 Ignoring unsupported signal USR1.
28/Feb/2008:00:00:09 :: 3580 Ignoring unsupported signal USR1.
28/Feb/2008:00:00:27 :: 3580 Ignoring unsupported signal USR1.
28/Feb/2008:00:00:27 :: 3580 Ignoring unsupported signal USR1.
28/Feb/2008:00:47:22 :: 2800 Ignoring unsupported signal USR2.
28/Feb/2008:00:47:22 :: 2800 Ignoring unsupported signal HUP.
28/Feb/2008:00:47:22 :: 2800 Ignoring unsupported signal SIGTRAP.

Any suggestions?I have nearly tried everything in this website , but just cann't make it right.
thanks very much
Feb 27, 2008 at 5:59 PM
Edited Feb 27, 2008 at 6:03 PM
And here is another story:i have totally suceeded making rails running under iis yestoday,,but when i updated my rails app later(just delete the earlier railsapp folder,and replace it with the new one with the same folder name),i got the "server error ,cant connect to fcgi server"error,and i start to handle it.Strangly,without knowing what the problem is ,i have fixed it(just restart the computer and iis ,reinstall ror4iisfastcgi ,etc),but then i get the above problem.
Any clues? It's so strange,how can it went wrong when it was already right,and i've done noting but replace the rails app with it?
I'm really confusing and exhausted!Anyone can help me?
Coordinator
Feb 27, 2008 at 6:46 PM
Hi Fleey,

1) If you make code changes to your rails app under IIS and are running RAILS_ENV = production you must restart IIS (Start -> Admin Tools -> IIS Admin Console -> right click -> Restart IIS) or via the command line. This will always be the case!

2) Please not you need to ensure the following has been completed: http://www.codeplex.com/RORIIS/Wiki/View.aspx?title=Documentation%20For%20Modifying%20The%20request_uri%20Method&referringTitle=Home

3) The fastcgi.crash.log can be ignored for the most part, it really doesn't tell you much.

4) Is this on a 64-bit box? Ensure the Isapi_Rewrite isapi filter has a "Green Up Arrow" under the IIS website properties -> Isapi Filters tab. If it shows a "Red Down Arrow" then the rewrite isapi filter is not loading correctly and this will cause the 404 errors where your rails paths are not getting rewritten to the http://localhost/dispatch.fcgi?opnq=/controller/action (this is the correct format if you perform step 2 above!)

5) If you get the red down arrow, check your event viewer. The isapi_rewrite is 32-bit and requires 32-bit app pools.

Let me know if this doesn't solve your issues.
Brent
Feb 28, 2008 at 1:04 AM
Hi Brent , thanks for your quick answer!
The bad thing is that after i have double checked the 5 things you mentioned above,Istill got the same problem as i first mentioned.
The Isapi_Rewrite isapi filter has a "Green Up Arrow",but it's priority is "unknown" .
Anything else to try?