diff --git a/Server-Diagnostics---Troubleshooting.md b/Server-Diagnostics---Troubleshooting.md index 9438e66..bb22bac 100644 --- a/Server-Diagnostics---Troubleshooting.md +++ b/Server-Diagnostics---Troubleshooting.md @@ -52,8 +52,8 @@ sudo -u radicale /usr/bin/radicale --logging-level debug Example: -``` -netstat -nlpt |grep ":5232 " +```bash +netstat -nlpt | grep ":5232 " tcp 0 0 127.0.0.1:5232 0.0.0.0:* LISTEN 4117/python3 tcp6 0 0 ::1:5232 :::* LISTEN 4117/python3 ``` @@ -69,7 +69,7 @@ Direct connection tests, for tests via reverse proxy see [Reverse-Proxy-Diagnost ### Redirect to landing page -``` +```bash curl http://localhost:5232/ ``` @@ -81,7 +81,7 @@ Redirected to /.web ### WebUI -``` +```bash curl http://localhost:5232/.web/ ``` @@ -96,16 +96,26 @@ Successful result depends on auth and permission ### Without authentication -``` +```bash curl -s --request PROPFIND http://localhost:5232/ Access to the requested resource forbidden. ``` +### With authentication on reverse proxy + +auth: http_x_remote_user + +```bash +curl -H "X-Remote-User: USER" --request PROPFIND http://localhost:5232/ +``` + +Should return in successful response of the particular USER content + ### With authentication #### Depth: 0 -``` +```bash curl -s --header 'Depth: 0' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "" ``` @@ -119,7 +129,7 @@ Successful result: #### Depth: 1 -``` +```bash curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "" ``` @@ -134,7 +144,7 @@ Successful result: (example) -``` +```bash curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep -E "(^ |displayname|C:calendar-description)" ```