Virtualhost issue in proxmox configuration #1841
Replies: 10 comments 8 replies
-
|
Should be the reverse proxy responsible for user authentication and radicale simply trusts the authenticated username or radicale itself verifying the user? |
Beta Was this translation helpful? Give feedback.
-
|
Yeah I'd like that Radicale trusts reverse proxy :) But in my case, after apache authentication, Radicale WebUI authentication page fields are empty : |
Beta Was this translation helpful? Give feedback.
-
|
I've tried many things following the contrib/apache file, but It has been written for standard Radicale installation. I can't find how to adapt it forRadicale docker image :\ |
Beta Was this translation helpful? Give feedback.
-
|
Already done in my vhost conf : |
Beta Was this translation helpful? Give feedback.
-
|
For serving Looks like Wiki need some extension, will check next days |
Beta Was this translation helpful? Give feedback.
-
|
Well... I really don't understand the philosophy of the apache configuration given in the exemple, so I'm not able to adapt it on proxmox and my VM. For now, I'll keep this virtualhost : Like I said, it permits to get apache login, then I have to relog in Radicale WebUI homepage and after that, I can upload vcf or ics files like a charm. Maybe I'll try another Reverse Proxy someday. Thx again for your help @pbiering |
Beta Was this translation helpful? Give feedback.
-
|
The example in contrib covers all cases and have toggles to activate, your related part is starting from here Radicale/contrib/apache/radicale.conf Line 179 in e4b337d Your config above is too simple for terminating authentication on Apache and using the Javascript client from .web You have to pass requests to .web without enforcing user auth while only enforcing authentication for requests outside .web: Will update reference doc next. |
Beta Was this translation helpful? Give feedback.
-
|
Seems OK : |
Beta Was this translation helpful? Give feedback.
-
|
So please confirm
If so, still strange, have you tested another browser, e.g. Firefox? Because this should not happen as the Javascript client sends the provided user/pass directly to reverse proxy and therefore no 401 should be returned. BTW: if you take the reference config, enable on the top Then
Then it should work, at least here, Apache log entries are e.g. (no 401 responded): Also check browser debug log what happens if still not working. |
Beta Was this translation helpful? Give feedback.
-
|
one can serve files from .web or Infcloud outside Radicale directly, then it would be simpler... |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello there :)
I'm a bit lost to properly configure apache virtualhost file.
Radicale is running on docker image, installed on a VM (private IP 192.168.10.12), hosted by a Proxmox 8 server running on Debian 12 (private IP 192.168.10.1).
Apache2 runs directly on the Debian 12 host, so the virtualhost conf is on the same server.
After few days and a lot of tests, while I tried to import ics files Radicale IHM kept saying this :

Log file tells me this :
[INFO] Access to '/titi/toto-contacts/' denied for anonymous user
or
[INFO] PUT response status for '/radicale/titi/toto-contacts/' in 0.001 seconds: 401 Unauthorized
I've done all my tests with Vivaldi and other chromium browsers, but surprisingly, when I use Firefox, IHM is OK to import my file, but logs keep telling me that I'm unauthorized.
Today, I finally understood that Radicale needs http_x_remote_user authentication behind a reverse proxy 🥇
So my Radicale config file is now like this :
And my vhost is like this :
192.168.10.12 is my VM ip address where Radicale docker is installed.
With this configuration, i'm unable to access authentication page :
I've updated my vhost config like this :
And now, Apache is asking for user/password \o/ But after a successful authentication, Radicale asks me to authenticate too...
Well finally, with Vivaldi browser, I can import ics files like a charm !
Now in Radicale logs, I've got this :
[WARNING] Base prefix (from HTTP_X_SCRIPT_NAME) must not end with '/': '/'
So my questions now...
Thx for the reading.
Beta Was this translation helpful? Give feedback.
All reactions