Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Rails 3.2.14 Issue Index of / appears instead of Rails website

Rails Index of /

  • Please log in to reply
1 reply to this topic

#1 ebeecroft

ebeecroft

    Passenger

  • Members
  • 3 posts

Posted 26 January 2014 - 06:35 PM

I am trying to develop a website on digital ocean and I followed the instructions as best I could but for some reason when I view my website, all I get is the index of / instead of my actual website homepage. I am running ruby on Rails with a MySQL backend and the Ruby version is 1.9.3 and Rails is 3.2.14.

 

I don't know why this is happening and I feel I got everying in the correct places but it still appears. Any help on getting this thing fully deployed would be very helpful. I want this website up and running, and if possible steps to prevent something like this from happening in the future would be helpful to me. Give me the answer to this, but also teach me so I can follow the steps so I could resolve this on my own in the future please.

 

This is my website view

http://162.243.59.103/

 

my rails website is located at

/var/www/example.com/

 

my apache server config is pointed to the public piece

/var/www/example.com/public

 

My Apache config file is:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p484/gems/passenger-$
   <IfModule mod_passenger.c>
     PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p484/gems/passenger-4.0.36
     PassengerDefaultRuby /usr/local/rvm/gems/ruby-1.9.3-p484/wrappers/ruby
   </IfModule>


<VirtualHost 162.243.59.103:80>
      ServerName www.duelingpets.net
      # !!! Be sure to point DocumentRoot to 'public'!
      DocumentRoot /var/www/duelingpets.net/public
      <Directory /var/www/duelingpets.net/public>
         # This relaxes Apache security settings.
         AllowOverride all
         # MultiViews must be turned off.
         Options -MultiViews
      </Directory>
 </VirtualHost>



#2 methodologist

methodologist

    Passenger

  • Members
  • 5 posts

Posted 08 February 2014 - 07:47 PM

have a Github repo for this?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users