This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |