cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nguyenduy574
Community Member

Canvas route to Index page instead of default page

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

4 Replies
chofer
Community Coach
Community Coach

Hello  @nguyenduy574 ‌...

I am not sure of an answer for you, but I wanted to let you know that I am going to share your question with both the https://community.canvaslms.com/groups/admins?sr=search&searchId=90b9bff4-3b23-407e-ad6a-e86d163a4f2...‌ and https://community.canvaslms.com/groups/canvas-developers?sr=search&searchId=44c6a42a-2d4d-426b-a513-...‌ groups here in the Canvas Community in hopes that your question will get some additional exposure.  I hope this is okay with you, Duy.  Good luck!

chofer
Community Coach
Community Coach

Hi again,  @nguyenduy574 ‌...

I wanted to check in with you again because we have not heard from you since you first posted this question on March 5th.  It appears as though you may have stumped members of the Canvas Community with your question.  Have you been able to come up with any solutions to your question since you first posted this question?  If so, would you be willing to share back here on this thread?  Or, if you are still seeking assistance with your question, please let us know that, too.  In checking in with you, this will also bump your topic up so that, hopefully, someone may be able to assist you.  Thanks, and looking forward to hearing from you soon, Duy!

chofer
Community Coach
Community Coach

Hello  @nguyenduy574 ‌...

Since we have not heard from you for quite some time, I am going to go ahead and mark your question as "Assumed Answered" in hopes that you've been able to find a solution since you first posted this question on March 5th.  If you've not found an answer yet and are still looking for assistance, by all means, please come back to this thread to post a follow-up message.  Thanks!

aalleyne
Community Member

Hello Chris Holder

Like Duy Nguyen, I am new to canvas. I followed the same guide and when I navigate to the installation, I get the index page and not the login page. Did anyone find an answer for this?