I try a ''hello world'' demo here,you can see all my codes and structure http://www.smtservers.com/demo/ I want to access the ruby app like this http://www.smtservers.com/demo/say/hello but I get a 404 error. Please let me know why. I am not sure the site structure is ok or not.Please give me a help Thanks Mark -- Posted via http://www.ruby-forum.com/.
> >http://www.smtservers.com/demo/ > >I want to access the ruby app like this > >http://www.smtservers.com/demo/say/hello > >but I get a 404 error. > >Please let me know why. > >I am not sure the site structure is ok or not.Please give me a help > >Thanks > >Mark >we''ve been here before...its not that i dont want to help you, its just...you seem to read some of the fundamentals. Your apache structures is NOT ok, http://www.smtservers.com/demo/ should point to the ''public'' folder in your app... Mikkel Bruun www.strongside.dk - Football Portal(DK) nflfeed.helenius.org - Football News(DK) ting.minline.dk - Buy Old Stuff!(DK) -- Posted with http://DevLists.com. Sign up and save your time!
Your site structure looks okay, and the error you''re getting is not a Rails error, so I think Apache has simply not been configured to use Rails yet. -- Posted via http://www.ruby-forum.com/.
But this demo folder is under public folder. like public | demo RoR have to install on web root? Thanks Mark Mikkel Bruun wrote:>> >>I am not sure the site structure is ok or not.Please give me a help >> >>Thanks >> >>Mark >> > > we''ve been here before...its not that i dont want to help you, its > just...you seem to read some of the fundamentals. > > Your apache structures is NOT ok, http://www.smtservers.com/demo/ should > point to the ''public'' folder in your app... > > Mikkel Bruun > > www.strongside.dk - Football Portal(DK) > nflfeed.helenius.org - Football News(DK) > ting.minline.dk - Buy Old Stuff!(DK)-- Posted via http://www.ruby-forum.com/.
For this kind of site structure do you think if I can access it by http://www.smtservers.com/demo/say/hello? Thanks Mark mark sheran wrote:> But this demo folder is under public folder. > like > > public > | > demo > > RoR have to install on web root? > > Thanks > > Mark > > Mikkel Bruun wrote: >>> >>>I am not sure the site structure is ok or not.Please give me a help >>> >>>Thanks >>> >>>Mark >>> >> >> we''ve been here before...its not that i dont want to help you, its >> just...you seem to read some of the fundamentals. >> >> Your apache structures is NOT ok, http://www.smtservers.com/demo/ should >> point to the ''public'' folder in your app... >> >> Mikkel Bruun >> >> www.strongside.dk - Football Portal(DK) >> nflfeed.helenius.org - Football News(DK) >> ting.minline.dk - Buy Old Stuff!(DK)-- Posted via http://www.ruby-forum.com/.
This is a simple ''hello word'' application. code structure is here http://www.smtservers.com/demo/ I can access it here http://www.smtservers.com/demo/public/say/hello But the url so long and other people can see my source code I want to access the same code like this http://www.smtservers.com/say/hello I also the hosting company,he told me change .htaccess. Please give me a idea how to change the setting in .htaccess Thanks MS -- Posted via http://www.ruby-forum.com/.
You should change your DocumentRoot. It now points to /../../demo you want it to point to /../../demo/public You should change the Directory directive(s) accordingly. -- Posted via http://www.ruby-forum.com/.
Colin wrote:> You should change your DocumentRoot. It now points to /../../demo you > want it to point to /../../demo/public > > You should change the Directory directive(s) accordingly.I can not httpd.conf.The hosting company ask me to change .htaccess.Please show me how to change .htaccess.Thanks -- Posted via http://www.ruby-forum.com/.
On Sat, 2006-02-25 at 14:05 +0100, mark sheran wrote:> Colin wrote: > > You should change your DocumentRoot. It now points to /../../demo you > > want it to point to /../../demo/public > > > > You should change the Directory directive(s) accordingly. > > I can not httpd.conf.The hosting company ask me to change > .htaccess.Please show me how to change .htaccess.Thanks---- a virtual host provider is a terrible environment with which to learn RonR and you are wasting your time. learn/develop on your own system and use the included webrick server on your machine as your web server. After you have an application ready to use, you can then work with your virtual host provider to get it transferred over and functional...which is still likely to be no easy task if the virtual host provider is not familiar with providing RonR services. To answer your question (not that it is going to help you), an .htaccess file is created in the public directory automatically when you issue command...''rails WHATEVER'' - thus - you should already have this file. Craig
I see the .htaccess.Please let me know how to change it make the link work http://www.smtservers.com/say/hello and like http://www.smtservers.com/demo/public/say/hello I do not like people see my site structure. Thanks -- Posted via http://www.ruby-forum.com/.
Craig White wrote:> a virtual host provider is a terrible environment with which to learn > RonR and you are wasting your time. > > learn/develop on your own system and use the included webrick server on > your machine as your web server. After you have an application ready to > use, you can then work with your virtual host provider to get it > transferred over and functional...which is still likely to be no easy > task if the virtual host provider is not familiar with providing RonR > services.Yes, Mark, please... You keep asking how to fix your "hello world" app on your server and several of us, myself included, have told you that this is a bad idea. Do you have a computer at home?
Yes I learn that in my windows system but I have to know how to make RoR work in hosting machine Thank you for help Mark -- Posted via http://www.ruby-forum.com/.
Alright, I can''t vouch for how well this will or won''t work, but you could try URL Rewriting: http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html Read that tutorial and try it out. However, I can''t tell you how this will diner your performance. Hope that helps, Ryan On 2/25/06, mark sheran <markshen2004@gmail.com> wrote:> > Yes I learn that in my windows system > > but I have to know how to make RoR work in hosting machine > > Thank you for help > > Mark > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ryan Prins rprins@gmail.com http://www.lazyi.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060227/7f6812f3/attachment.html