diff --git a/README.md b/README.md index 77a88de6..0d889fc2 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,8 @@ docroot = "/usr/share/lms/docroot/;/newroot/resources,/newroot/css,/newroot/imag deploy-path = "/newroot/"; # ending slash is important ``` +If you use nginx as a reverse proxy, you can simply replace `location /` with `location /newroot/` to achieve the same result. + ### Reverse proxy settings _LMS_ is shipped with an embedded web server, but it is recommended to deploy behind a reverse proxy. You have to set the _behind-reverse-proxy_ option to _true_ in the `lms.conf` configuration file. @@ -208,7 +210,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://localhost:5082; + proxy_pass http://localhost:5082/; proxy_read_timeout 120; } }