Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 18, 2012 6:05 pm 
Offline

Joined: Sun Mar 18, 2012 5:56 pm
Posts: 1
I have followed the linode tutorials for setting up apache2 and passenger

http://library.linode.com/web-servers/a ... tual-hosts

myapp is working fine at example.com:3000. I have followed all the installation instructions for passenger and it appears to be set up correctly

In my virtual host I have:

<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /srv/www/example.com/application/public
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined

<Directory /srv/www/example.com/application/public >
AllowOverride all
Options -Multiviews
</Directory>
</VirtualHost>

I have deleted the index.html file and in my rails app I have set root to: 'pages#home'. I am using rails 3.2.2 in line with the hartl rails tutorial here:

http://ruby.railstutorial.org/chapters/ ... on=3.2#top

When I go to example.com, all I see is a list of files in the directory instead of pages#home being served. What could be the problem here? Do I need to do some kind of redirection? Thanks


Top
   
 Post subject:
PostPosted: Sun Mar 18, 2012 6:51 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Not a "ruby guy" so this could be waaaaay off base, but normally when Apache shows a directory instead of a web page it's because you didn't add that type of page in the DirectoryIndex tag inside httpd.conf

Should have something like:

DirectoryIndex index.rhtml index.html index.htm


//or maybe that's the code to collapse the local galaxy cluster - so use at your own risk, or YMMV, or one of those CYA warnings//


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group