Merge pull request #1768 from nodiscc/doc-proxy-subdirectory
doc: add notice about nginx location directive when shaarli is installed in a subdirectory
This commit is contained in:
commit
a79707258f
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -305,6 +305,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;
|
||||||
|
|
Loading…
Reference in a new issue