Hi,
I’m trying to run tutor behind a web proxy by using nginx. I followed the docs and ran:
tutor config save --set RUN_CADDY=false --set NGINX_HTTP_PORT=81
Afterward I ran tutor local stop and then tutor local start to make sure that the changes took effect.
Then I created this file /etc/nginx/sites-available/tutor.conf
and linked it to sites-enabled as well:
server {
listen 80;
server_name www.example.com example.com;
location /lms/ {
proxy_pass http://127.0.0.1:81;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
}
According to this forum post, it should work out this way Nginx proxy and SSL .
Unfortunately I only get the generic nginx message:
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
Is the location inside my tutor.conf wrong and if yes what is the correct one? I tried many different things to solve this, but didn’t succeed. I’d be very greatful if someone had an idea.