doc: add notice about nginx location directive when shaarli is installed in a subdirectory

- fixes https://github.com/shaarli/Shaarli/issues/1679
This commit is contained in:
nodiscc 2021-06-17 17:50:56 +02:00
parent 11c6fc418d
commit f841121a6e
No known key found for this signature in database
GPG key ID: 61B23168A539DBBD
2 changed files with 2 additions and 0 deletions

View file

@ -118,6 +118,7 @@ http {
ssl_certificate /path/to/certificate ssl_certificate /path/to/certificate
ssl_certificate_key /path/to/private/key ssl_certificate_key /path/to/private/key
# if shaarli is installed in a subdirectory of the main domain, edit the location accordingly
location / { location / {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View file

@ -304,6 +304,7 @@ server {
client_max_body_size 100m; client_max_body_size 100m;
# relative path to shaarli from the root of the webserver # relative path to shaarli from the root of the webserver
# if shaarli is installed in a subdirectory of the main domain, edit the location accordingly
location / { location / {
# default index file when no file URI is requested # default index file when no file URI is requested
index index.php; index index.php;