mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
update related to nginx/apache proxy configs
This commit is contained in:
parent
18e8ab1ccc
commit
a64f0e1093
1 changed files with 8 additions and 4 deletions
|
@ -338,11 +338,16 @@ removed from the example below.
|
|||
|
||||
Example **nginx** configuration:
|
||||
|
||||
See for latest examples: https://github.com/Kozea/Radicale/tree/master/contrib/nginx/
|
||||
|
||||
```nginx
|
||||
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_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass_header Authorization;
|
||||
}
|
||||
|
@ -361,6 +366,8 @@ handle_path /radicale/* {
|
|||
|
||||
Example **Apache** configuration:
|
||||
|
||||
See for latest examples: https://github.com/Kozea/Radicale/tree/master/contrib/apache/
|
||||
|
||||
```apache
|
||||
RewriteEngine On
|
||||
RewriteRule ^/radicale$ /radicale/ [R,L]
|
||||
|
@ -370,10 +377,7 @@ RewriteRule ^/radicale$ /radicale/ [R,L]
|
|||
ProxyPassReverse http://localhost:5232/
|
||||
RequestHeader set X-Script-Name /radicale
|
||||
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
|
||||
RequestHeader unset X-Forwarded-Proto
|
||||
<If "%{HTTPS} =~ /on/">
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
</If>
|
||||
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
|
||||
</Location>
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue