# Please Help: Accessing Ruby app brings up Apache test page

**URL:** <https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172>\
**Category:** Rails\
**Created:** [February 26, 2010, 3:10am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172 "2010-02-26T03:10:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rezilient](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Post date:** [February 26, 2010, 3:10am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172/1 "2010-02-26T03:10:34Z")

</div>

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](http://clockingit.mywebsite.com)  
ServerAlias [www.clockingit.mywebsite.com](http://www.clockingit.mywebsite.com)  
ServerAlias [webmail.clockingit.mywebsite.com](http://webmail.clockingit.mywebsite.com)  
ServerAlias [admin.clockingit.mywebsite.com](http://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/](http://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](http://webmail.clockingit.mywebsite.com)  
#RewriteRule ^(._) [https://clockingit.mywebsite.com:20000/](https://clockingit.mywebsite.com:20000/) [R]  
 #RewriteCond %{HTTP\_HOST} =[admin.clockingit.mywebsite.com](http://admin.clockingit.mywebsite.com)  
 #RewriteRule ^(._) [https://clockingit.mywebsite.com:10000/](https://clockingit.mywebsite.com:10000/) [R]  
#  
#AuthName “[clockingit.mywebsite.com](http://clockingit.mywebsite.com) statistics”  
#AuthType Basic  
#AuthUserFile /home/mywebsite/domains/  
[mywebsite.com is available for purchase - Sedo.com](http://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](http://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!!

---

<div class="post-metadata">

**Author:** ![rezilient](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Post date:** [February 27, 2010, 9:23am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172/2 "2010-02-27T09:23:41Z")

</div>

Any ideas? Thanks for any advice.

---

<div class="post-metadata">

**Author:** ![rezilient](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Post date:** [February 27, 2010, 1:04pm UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172/3 "2010-02-27T13:04:54Z")

</div>

Shouldn’t the virtual host be

\<VirtualHost 69.69.69.169:80\>

Note the colon?

Cheers  
Simon

---

<div class="post-metadata">

**Author:** ![rezilient](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Post date:** [February 28, 2010, 7:33am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172/4 "2010-02-28T07:33:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rezilient](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Post date:** [February 28, 2010, 7:22am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172/5 "2010-02-28T07:22:45Z")

</div>

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.
