Canvas route to Index page instead of default page

Community Novice

Hello everyone,

I quite new to canvas, I tried to follow the Prod installation guide here.

No issue happen, I started:

  • Redis
  • Postgresql
  • Canvas_init
  • Apache2

But when I point to the server, it displays the index, not the default page.

I tried to search on Internet but no luck. Someone told that it's because passenger doesn't work.

Could anyone help me with this? Thank you

Below are my conf files:


LoadModule passenger_module /usr/lib/apache2/modules/
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/location.ini
PassengerRuby /usr/bin/ruby
PassengerDefaultUser canvasuser


<IfModule mod_passenger.c>
   PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
   PassengerDefaultRuby /usr/bin/ruby
   PassengerDefaultUser canvasuser
   Options -MultiViews
   PassengerResolveSymlinksInDocumentRoot on
   #Set this to whatever environment you'll be running in
   RailsEnv production


<VirtualHost *:80>
   DocumentRoot /var/canvas/public
   RewriteEngine On
   RewriteCond %{HTTP:X-Forwarded-Proto} !=https
   RewriteCond %{REQUEST_URI} !^/health_check
   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
   ErrorLog /var/log/apache2/canvas_errors.log
   LogLevel warn
   CustomLog /var/log/apache2/canvas_access.log combined
   SetEnv RAILS_ENV production
   <Directory /var/canvas/public>
      PassengerEnabled on
      Options All
      AllowOverride All
      Require all granted
      PassengerResolveSymlinksInDocumentRoot on