Skip to content

Instantly share code, notes, and snippets.

@D3xx73r
D3xx73r / nginx_canvas
Created December 31, 2013 00:32
Configure canvas lms with Nginx
#Nginx configuration file for Canvas LMS
server {
listen 80;
server_name canvas.yourserver.com files.canvas.yourserver.com;
root /path/to/public;
rails_env production; #optionaly specify the rails environment
location / {
rewrite ^(.*)$ https://$http_host$request_uri redirect;
}