Welcome Guest | Login

All requests are sent to the default action

Hello,

I've been working for the last couple of weeks deploying my Ramaze app, creating the htaccess and dispatch files, setting up my connection to the remote database, etc. but I seem to have hit a snag.

Every time I make a request from my domain, be it www.mydomain.com/ or www.mydomain.com/do_action or whatever, the request always executes the default "index" action.

Can anyone tell me what might be causing this? Perhaps the htaccess file when it rewrites to dispatch.fcgi? Right now I haven't got a clue.

Thanks.

2008-11-16 11:34 PM

I could see that you have given first priority for index page in your .htaccess. So if the index page is present it will be served and no call will be passed to dispatch.fcgi. I've now moved the index.xhtml file to backup changed the shebang line in the dispatch.fcgi to /usr/local/bin/ruby and the application is loading now.

---------
[Mon Nov 17 01:04:32 2008] [notice] mod_fcgid: server /home/<user name>/public_html/dispatch.fcgi(9560) started
./models.rb:81: warning: parenthesize argument(s) for future version
INFO: Og uses the Mysql store.
#<Og::MysqlAdapter:0xb78e3250>
[2008-11-17 01:04:33] WARN   Create recent_posts=nil on Global
[2008-11-17 01:04:33] WARN   Create archived_dates=nil on Global
[2008-11-17 01:04:33] WARN   Create links=[] on Global
[2008-11-17 01:04:33] INFO   Starting up Ramaze (Version 0.3.9)
[2008-11-17 01:04:33] DEBUG  mapped Controllers: {"/"=>MainController}
[2008-11-17 01:04:33] INFO   Dynamic request from 122.166.14.197: /test
[2008-11-17 01:04:33] INFO   Dynamic request from 122.166.14.197: /favicon.ico
---------

Also have a look into the forum link for more information.

http://www.hostingrails.com/forums/deployment_troubleshooting_thread/943

2008-11-17 12:20 AM

Yes, the application is loading, but I still seem to have the same problem - all of the requests handled by the controller are sent to the default action(even if they are not legit requests, i.e. www.mydomain.com/goobelygook).

I don't have this problem in my test environment.

I noticed in the ramaze deployment guide their seems to be some apache configuration neccesary:

<VirtualHost 127.0.0.1:7001>
ServerAdmin webmaster@yourdomain.com
DocumentRoot /path/to/you/ramaze/application/public
ServerName ramazetest.yourdomain.com
ServerAlias ramazetest
AddDefaultCharset utf-8
ErrorLog /var/log/apache2/ramazetest_error.log
TransferLog /var/log/apache2/ramazetest_access.log
</VirtualHost>

Could I get someone to set that up for me, since I can't seem to find the apache config file?

Thanks.

2008-11-17 10:47 AM

Sure - send a new ticket into support requesting this and as long as the server your on can handle the AddDefaultCharset you should be all set.

However, I think the problem may be in the .htaccess - can you switch to mod_rails so you don't have to worry about it?  

2008-11-18 01:41 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.