Skip to content

Commit

Permalink
update related to nginx/apache proxy configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Nov 17, 2024
1 parent 18e8ab1 commit a64f0e1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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]
Expand All @@ -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>
```

Expand Down

0 comments on commit a64f0e1

Please sign in to comment.