ejweb Posted February 22, 2015 Posted February 22, 2015 Hello, After setting up a Ruby on Rails application on my account using the instructions from the "Deploying a Rails application on HelioHost" Web page (http://wiki.helionet.org/Deploying_a_Rails_application_on_HelioHost), I cannot view RB files on my Web site. I have uploaded an RB file to the "/home/ejweb/rails_apps/test/" directory called "index.rb", and had given it a chmod of 755. However, when I look at the script file on the Web site at http://www.ejweb.tk/test/index.rb, it displays a blank Web page. Is the "/home/ejweb/rails_apps/test/" path the correct directory to upload RB files? Additionally, I get a connection timed out error message when I go to http://ejweb.tk:12955/ directly. Is this behaviour normal?
Krydos Posted March 2, 2015 Posted March 2, 2015 This support request is being escalated to our root admin. I saw your question on IRC, but you logged off before I could respond to it. I also normally don't handle any issues on the forum that aren't escalated to me, but this one may have slipped through the cracks. I tested your issue, and I found that the .htaccess rewrite rules don't seem to like all the backslash escapes anymore. I got it working for you. All I did was edit /home/ejweb/public_html/.htaccess and change RewriteRule ^test\/(.*) "http\:\/\/127\.0\.0\.1\:12955\/$1" [P,L] to RewriteRule ^test(.*) "http\:\/\/127\.0\.0\.1\:12374\/$1" [P,L] Let us know if you're having any other issues, and sorry for the delay helping you with this. http://ejweb.tk/test
ejweb Posted March 3, 2015 Author Posted March 3, 2015 Thank you for looking into my problem. However, it has not solved my original concerns. The RB script file (http://www.ejweb.tk/test/index.rb) still displays a blank Web page, and am still getting a connection timed out error message when I go to http://ejweb.tk:12955/ directly. Would you, or anyone else here on this forum, be able to help me have this resolved?
yashrs Posted March 3, 2015 Posted March 3, 2015 I get this:-Proxy Error The proxy server received an invalid response from an upstream server.The proxy server could not handle the request GET /test/index.rb. Reason: Error reading from remote server Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 1
ejweb Posted March 4, 2015 Author Posted March 4, 2015 Hi, yashrs, thank you for your providing what the script looks like from your side of the view. Hopefully, that will help give some insight as to what is presently happening.
Krydos Posted March 6, 2015 Posted March 6, 2015 However, it has not solved my original concerns.The title of your post isCannot View Ruby On Rails ApplicationThe reason you couldn't view your application was because the system didn't like two characters that I removed of the automatically created redirect. Your ruby on rails application could then be viewed once that was fixed. I thought that was your "original concern" since it was the title of your post.The RB script file http://www.ejweb.tk/test/index.rb still displays a blank Web pageThe reason it displays a blank web page is because /home/ejweb/rails_apps/test/ is not publicly visible. It is the root of your application, but it cannot be seen with a browser. If you read http://guides.rubyonrails.org/getting_started.html you can see that /home/ejweb/rails_apps/test/public/ is the publicly accessible webroot of your rails application. I created a test file so you can see what I mean located at http://ejweb.tk/test/index2.htmland am still getting a connection timed out error message when I go to http://ejweb.tk:12955 directly.That's because ejweb.tk:12955 is not publicly accessible. This is a security concern on a large scale shared server such as what we host. If you want to view your rails app remotely you will have to view it through the redirect.Would you, or anyone else here on this forum, be able to help me have this resolved?Sure.
ejweb Posted March 8, 2015 Author Posted March 8, 2015 Thank you, Krydos, for going through my concerns in detail, addressing areas using quotations from my previous message. As I have just started learning Ruby on Rails, my understanding of the Web site development process and its file system is extremely limited. My apologies if I had not expressed my problem properly from my first message. I will go through the Web site that you had provided to gain a better understanding of how Ruby on Rails works. Should I have any non-technical-related problems regarding your hosting service, I will request for some assistance in the Questions section of this forum. Thank you. Your help was greatly appreciated.
Recommended Posts