similar to: Can I route directly to Controller?

Displaying 20 results from an estimated 20000 matches similar to: "Can I route directly to Controller?"

2006 Jun 07
0
Apache/Routing Help (Can I have apache route to specific controller)
I am trying to integrate a rails application with Zope. My goal is to slowly replace parts of the Zope site with Rails while trying to maintain the original urls (where possible). I am using Apache 1.3 with FCGI. Right now my set up looks sort of like the following: Alias /rails/ /rails-app/public/ RewriteRule ^/rails/ - [L] RewriteRule ^/(.*) http://zope-server/$1 [P,L] I am using the
2006 Jun 07
0
Apache/Routing Help (Can I have apache route to specific con
I am trying to integrate a rails application with Zope. My goal is to slowly replace parts of the Zope site with Rails while trying to maintain the original urls (where possible). I am using Apache 1.3 with FCGI. Right now my set up looks sort of like the following: Alias /rails/ /rails-app/public/ RewriteRule ^/rails/ - [L] RewriteRule ^/(.*) http://zope-server/$1 [P,L] I am using the
2006 Aug 13
3
Rewrite problem or routing issue?
I''m not able to access anything in public, everything seems to be going through the rails router. As a result, I can''t get to stylesheets or javascript. I''m not quite clear if this is a .htaccess problem, or a router problem. I eliminated the "catchall" route, so the last route is map.connect '':controller/:action/:id'' My .htaccess file
2005 Mar 05
1
How to provide Rails hosting on Apache/FastCGI enviroment?
Hi, folks. I am running a small Web Hosting service personally. I hope to provide rails service on apache/fcgi to my hosting users. So, I''ve been testing to setup rails application, and there was no problem. But with Rails version 0.10.0 release, previous way doesn''t work. Following is a scenario which worked well before, but now beats me. 1. Eric has his own rails directory
2006 Aug 13
1
Rewrite problem?
I''m not able to access anything in public, everything seems to be going through the rails router. As a result, I can''t get to stylesheets or javascript. I''m not quite clear if this is a .htaccess problem, or a router problem. I eliminated the "catchall" route, so the last route is map.connect '':controller/:action/:id'' My .htaccess file
2006 Mar 04
6
Can''t get Fast CGI working.
Well, after many hours of tinkering and internet browsing I just can''t get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI works fine, but as soon as I enable FastCGI in .htaccess I get the message: Application error Rails application failed to start properly Here''s what I''ve done so far: - I''ve installed all the necessary software for
2006 Jun 29
0
can''t run rails application
Hello, I''m trying to run Rails on Apache 2.0 with mod_fcgid. It seems like fcgi has been set up ok, but still I can''t run my rails application. Here is my httpd.conf IPCCommTimeout 40 IPCConnectTimeout 10 DefaultInitEnv RAILS_ENV production SocketPath /tmp/fcgidsock <VirtualHost *:80> <Location /> RewriteEngine On
2005 Dec 20
1
trouble with fastcgi and "undefined method `is_cgi?''"
I''m trying to get started with fastcgi on apache 2.0.54 on Fedora Core 4. I''ve created a really simple Rails app that doesn''t do any database actions. It works fine when I call it as CGI, but when I try to switch to fastCGI, I have problems. I get the following error in log/fastcgi.crash.log: [20/Dec/2005:10:16:53 :: 26912] Dispatcher failed to catch: undefined
2006 Feb 14
5
problem with apache
Hi! I don''t know much about linux and apache configuration, so we''re using cpanel on our server to manage accounts etc. I was trying to install ror (according to this page: http://wiki.rubyonrails.org/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel) on our server, but it didn''t worked. If i enter "server.com/rails" i get "/testapp/index.html was not
2006 Feb 01
3
apache2 / fcgi / RoR - no connection
Hi, I''ve generated a new Rails app and dummy controller "foo" with method "hello". I am trying to run it under Apache/2.0.53 with fastcgi, and getting the index.html page when I hit http://localhost/foo/hello, or for any other request (http://localhost/kdjfslkfjs). Also, there is nothing in the rails logs, and no errors in the apache logs. Relevant bit of
2006 Apr 28
1
Apache proxy to lighttpd leads to Rails routing error
Hello, I have an issue I am having trouble figuring out. I have a Rails app running through lighttpd which is accessed through an Apache proxy. My apache config: <location /rails/> ProxyPass http://localhost:81/ ProxyPassReverse http://localhost:81/ </location> RewriteEngine On RewriteRule ^/rails/(.*) http://localhost:81/$1 [P] So when apache sees /rails/ it
2006 Aug 03
0
Can''t set up rails: dispatch.cgi failed
Hi, I''m trying to setup RoR on OpenBSD 3.9 with Ruby 1.8.4 and Apache 1.3. I''ve setup Rails to run as a Virtual Host, and I can view the "Welcome Aboard" page. When I try to access http://<server>/category/ though, I get an "Application error...Rails application failed to start properly" message. Apache.log has this error: [error] (2)No such file or
2006 Jul 02
0
Use mod_rewrite rules instead of rails-routes
Hi I am trying to use mod_rewrite rules instead of rails routes (don''t ask why.., routes are not flexible enough in my case): Basically I have these two RewriteRules in my .htaccess file: RewriteRule ^(.*\/)*index\.([0-9]+)\.([0-9]+)\.html$ /keywords/show?id=$2&page=$3 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] So I want /foo/bar/index.123.4.html rewritten to
2006 Feb 12
1
fcgid -> errors
Hi, I''m trying to get rails running on Debian stable with Apache 2, mod_fcgid, Rails 1.0. The application works fine with webrick (*). Let''s start here: @eugene [/var/www/ls2/linuxsi/public] $ ./dispatch.fcgi Status: 500 Internal Server Error Seems to result in the following in the log files: [12/Feb/2006:12:18:40 :: 4105] starting [12/Feb/2006:12:18:40 :: 4105] terminated
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2006 Jun 02
4
RoR on Apache not working
Hi I''m a RoR newbie, in fact i''ve been using it for less than 24 hours, but I''m not an internet/pc/apache/developement newbie so I expected this to go much easier :) Ok, here it goes. I''ve been trying to get RoR working with apache both on a RH server and after i didn;t managed there I tried on my machine, an windows XP/Apache2 machine. I don''t like
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
.htaccess is like this... AddHandler fcgid-script .fcgi RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^(.*)$ dispatch.cgi [QSA,L] <--- commented RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] if I run.... ./dispatch.rb ./../config/environment.rb:35: warning: already initialized constant MONTHNAMES
2007 Sep 27
3
FastCGI in Shared Hosting - What To Do?
Hello Campers! I am working on Site5, trying to get a working Camping application running. Unfortunately, my sole option in terms of deployment is FastCGI. I have no access to sudo so I cannot create ScriptAliases. I''ve taken the Camping Short Short Example and uploaded it, along with a dispatch.fcgi and an .htaccess file. My question is - given the state of Camping development right
2007 Dec 21
2
config Rails .htaccess
Hello, newbie here please help I have developed my Rails site under www.mydomain.com/home Now I want to map it to use www.mydomain.com, what should i change to this .htaccess file =============== Content of my .htaccess file under public directory ============ # General Apache options AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi Options +FollowSymLinks +ExecCGI # If you
2008 Jul 23
3
Premature end of script headers: dispatch.fcgi
Hey people, I''m working on this issue for more than 4 hours now and I have no idea what''s wrong so I ask you kindly to have a look at my stuff. When I try to access my website I get this error: Application error Rails application failed to start properly error.log says: [Wed Jul 23 17:51:22 2008] [error] Premature end of script headers: dispatch.fcgi I tried to run