I''m following along on the 10 minute tutorial. Accessing blog at http://www.ampede.com/blog/ works fine. I then created Weblog using the script/new_controller generator. When I try to access http://www.ampede.com/blog/weblog/, I get: ------------------------------------------------------------- Not Found The requested URL /dispatch.cgi was not found on this server. ------------------------------------------------------------- I''m being hosted at textdrive.com if that helps, and I''m using their Rails setup. Regards, Eric Ocean P.s. Is there somewhere I should be looking for answers to these kinds of questions. I found the Wiki difficult to find stuff with.
On Sat, 2004-11-06 at 17:07 -0800, Eric Ocean wrote:> I''m following along on the 10 minute tutorial. Accessing blog at > http://www.ampede.com/blog/ works fine. I then created Weblog using the > script/new_controller generator. When I try to access > http://www.ampede.com/blog/weblog/, I get: > > ------------------------------------------------------------- > Not Found > > The requested URL /dispatch.cgi was not found on this server. > ------------------------------------------------------------- > > I''m being hosted at textdrive.com if that helps, and I''m using their > Rails setup.While I may be wrong, it would seem you have put your blog down a sub dir and you didn''t modify the .htaccess file with the new location of dispatch.cgi. The error message shows it is looking in the root dir. -- Steven Critchfield <critch-wQLwMjUOumVBDgjK7y7TUQ@public.gmane.org>
Steven Critchfield wrote:> While I may be wrong, it would seem you have put your blog down a sub > dir and you didn''t modify the .htaccess file with the new location of > dispatch.cgi. The error message shows it is looking in the root dir.No you''re right. This url works fine: http://www.ampede.com/blog/dispatch.cgi?controller=weblog&action=index Eric, you''ll have to modify the rewriterules below this line: # Default rewriting rules. Change extension from .cgi to .fcgi to switch to FCGI and to .rb to switch to mod_ruby to make them point at /blog/dispatch.cgi instead of /dispatch.cgi. -- Marten Veldthuis
I made the changes that were suggested below and they worked. Thanks to everyone who wrote in to help, especially Marten Veldthuis who has also helped me with other issues on my textdrive setup. Regards, Eric Ocean On Nov 7, 2004, at 5:31 AM, Marten Veldthuis wrote:> Steven Critchfield wrote: >> While I may be wrong, it would seem you have put your blog down a sub >> dir and you didn''t modify the .htaccess file with the new location of >> dispatch.cgi. The error message shows it is looking in the root dir. > > No you''re right. This url works fine: > http://www.ampede.com/blog/dispatch.cgi?controller=weblog&action=index > > Eric, you''ll have to modify the rewriterules below this line: > > # Default rewriting rules. Change extension from .cgi to .fcgi to > switch to FCGI and to .rb to switch to mod_ruby > > to make them point at /blog/dispatch.cgi instead of /dispatch.cgi. > > -- > Marten Veldthuis > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >