Skip to content

Commit

Permalink
doc: add notice about nginx location directive when shaarli is instal…
Browse files Browse the repository at this point in the history
…led in a subdirectory

- fixes shaarli#1679
  • Loading branch information
nodiscc committed Jun 17, 2021
1 parent 11c6fc4 commit f841121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/md/Reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ http {
ssl_certificate /path/to/certificate
ssl_certificate_key /path/to/private/key
# if shaarli is installed in a subdirectory of the main domain, edit the location accordingly
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down
1 change: 1 addition & 0 deletions doc/md/Server-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ server {
client_max_body_size 100m;
# 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 / {
# default index file when no file URI is requested
index index.php;
Expand Down

0 comments on commit f841121

Please sign in to comment.