-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP_X_SCRIPT_NAME not removed from PATH_INFO #803
Comments
This is the expected behaviour (see https://www.python.org/dev/peps/pep-0333/). |
Sorry it took me a while. Regardless ...
However as you can see it requires some url-matching and parameter-fiddling. |
@chripo : is this still an issue with Radicale major version 3? If not, please close. |
I was just reviewing my own radicale configuration for refresh and can confirm this is still an issue (tested with radicale 3.1.18, will update soon to 3.2.x and nginx 1.24.0) |
I've did a major review of the "apache" reverse proxy config example (supporting 4 different flavors) and stored a template in the repository now: https://github.com/Kozea/Radicale/blob/master/contrib/apache/radicale.conf Can you please align your "nginx" configuration and check whether the issue disappears then? |
there are now also small nginx config examples in repo https://github.com/Kozea/Radicale/tree/master/contrib/nginx - please validate and reopen if there is still an issue |
I just migrated from radicale 1 to 2. My setup is nginx -> uwsgi -> radicale.
I used to rely on the
base_prefix
in radicale's config to get theSCRIPT_NAME
andPATH_INFO
parameters right which apparently is no longer possible.My understanding of the parameter
HTTP_X_SCRIPT_NAME
is that it should overwriteSCRIPT_NAME
and be stripped off ofPATH_INFO
. So ifHTTP_X_SCRIPT_NAME = /radicale
andPATH_INFO = /radicale/myuser/
then the latter should be rewritten to/myuser/
.However that does not seem to be the case: https://github.com/Kozea/Radicale/blob/master/radicale/__init__.py#L404
The text was updated successfully, but these errors were encountered: