mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-29 16:55:32 +00:00
Improve nginx example
This commit is contained in:
parent
cb05958aff
commit
cdeabe1b3f
1 changed files with 5 additions and 3 deletions
8
proxy.md
8
proxy.md
|
@ -10,9 +10,11 @@ from the URL path that is forwarded to Radicale.
|
|||
|
||||
Example **nginx** configuration:
|
||||
```nginx
|
||||
location /sub/folder/radicale {
|
||||
proxy_pass localhost:5232/; # The / is important!
|
||||
proxy_set_header X-Script-Name /sub/folder/radicale;
|
||||
location /radicale/ { # The trailing / is important!
|
||||
proxy_pass http://localhost:5232/; # The / is important!
|
||||
proxy_set_header X-Script-Name /radicale;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass_header Authorization;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue