Canvas route to Index page instead of default page

nguyenduy574
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:

Apache:

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

Passenger.conf

<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
</IfModule>

canvas.conf

<VirtualHost *:80>
   ServerName canvas.example.com
   ServerAlias files.canvas.example.com
   ServerAdmin youremail@example.com
   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
</Directory>
</VirtualHost>

219213_pastedImage_1.png

Users who also had this question