Please Help: Accessing Ruby app brings up Apache test page

Hello.

I finally got Ruby, Gem and Passenger installed without any glaring
errors.

ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
gem 1.3.5

I added the following lines to my httpd.conf:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/
passenger-2.2.10/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.10
PassengerRuby /usr/local/bin/ruby

(confirmed the files/folders are present)

and for the virtual host we have:

<VirtualHost 69.69.69.169.80>
SuexecUserGroup “#528” “#529
ServerName clockingit.mywebsite.com
ServerAlias www.clockingit.mywebsite.com
ServerAlias webmail.clockingit.mywebsite.com
ServerAlias admin.clockingit.mywebsite.com
DocumentRoot /home/mywebsite/domains/clockingit.mywebsite.com/
clockingit/public
ErrorLog /var/log/virtualmin/clockingit.mywebsite.com_error_log
CustomLog /var/log/virtualmin/clockingit.mywebsite.com_access_log
combined
#ScriptAlias /cgi-bin/ /home/mywebsite/domains/
clockingit.mywebsite.com/cgi-bin/
#ScriptAlias /awstats /home/mywebsite/domains/clockingit.mywebsite.com/
cgi-bin
#DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/mywebsite/domains/clockingit.mywebsite.com/clockingit/
public>
Options -Indexes FollowSymLinks -MultiViews
allow from all
AllowOverride All
RailsEnv production
PassengerHighPerformance on

#<Directory /home/mywebsite/domains/clockingit.mywebsite.com/cgi-bin>
#allow from all
#
#RewriteEngine on
#RewriteCond %{HTTP_HOST} =webmail.clockingit.mywebsite.com
#RewriteRule ^(.) https://clockingit.mywebsite.com:20000/ [R]
#RewriteCond %{HTTP_HOST} =admin.clockingit.mywebsite.com
#RewriteRule ^(.
) https://clockingit.mywebsite.com:10000/ [R]
#
#AuthNameclockingit.mywebsite.com statistics”
#AuthType Basic
#AuthUserFile /home/mywebsite/domains/
clockingit.mywebsite.com/.awstats-htpasswd
#require valid-user
#
#Alias /dav /home/mywebsite/domains/clockingit.mywebsite.com/
clockingit/public
#<Location /dav>
#DAV On
#AuthType Basic
#AuthName clockingit.mywebsite.com
#AuthUserFile /home/mywebsite/domains/clockingit.mywebsite.com/etc/
dav.digest.passwd
#Require valid-user
#ForceType text/plain
#Satisfy All
#

A lot of the stuff I commented out above came from Virtualmin so I cut
it down to the basics that Passenger guide suggested.

When I hit the site I am getting the default “Apache 2 Test Page”.
When I put a test index.html in “public” for this app (the app is
called clockingIT) the index.html is loading as expected, as if Ruby
doesn’t exist.

So I’m guessing something is missing… How can I check if Passenger is
loaded correctly? I don’t get any errors when I start Apache, so…

Thanks for any help!!

Any ideas? Thanks for any advice.

Shouldn’t the virtual host be

<VirtualHost 69.69.69.169:80>

Note the colon?

Cheers
Simon

I’d cd into your app dir and run
ruby script/server
then try to hit your app on port 3000, if that works, rails is set up ok
and it’s your apache/passenger setup that is wrong

Oh, yes it is colon in the actual httpd.conf, I typo’d when I was
removing my actual IP address. The website is accessible without
problems, except Ruby is not loading up.

Is there any way I can test if Ruby is indeed installed correctly?
What could I be missing?

Thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs