contrib/apache,caddy: extend URI for no-auth
This commit is contained in:
@@ -50,8 +50,8 @@
|
||||
RewriteCond %{REQUEST_METHOD} GET
|
||||
RewriteRule ^/radicale/$ /radicale/.web/ [R,L]
|
||||
|
||||
<LocationMatch "^/radicale/\.web.*>
|
||||
# Internal WebUI does not need authentication at all
|
||||
<LocationMatch "^/radicale/\.(web|token).*>
|
||||
# Internal WebUI or Token does not need authentication at all
|
||||
RequestHeader set X-Script-Name /radicale
|
||||
|
||||
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
|
||||
@@ -69,7 +69,7 @@
|
||||
</IfDefine>
|
||||
</LocationMatch>
|
||||
|
||||
<LocationMatch "^/radicale(?!/\.web)">
|
||||
<LocationMatch "^/radicale(?!/\.(web|token))">
|
||||
RequestHeader set X-Script-Name /radicale
|
||||
|
||||
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
|
||||
@@ -133,8 +133,8 @@
|
||||
|
||||
WSGIScriptAlias /radicale /usr/share/radicale/radicale.wsgi
|
||||
|
||||
# Internal WebUI does not need authentication at all
|
||||
<LocationMatch "^/radicale/\.web.*>
|
||||
# Internal WebUI or Token does not need authentication at all
|
||||
<LocationMatch "^/radicale/\.(web|token).*>
|
||||
RequestHeader set X-Script-Name /radicale
|
||||
|
||||
Require local
|
||||
@@ -143,7 +143,7 @@
|
||||
</IfDefine>
|
||||
</LocationMatch>
|
||||
|
||||
<LocationMatch "^/radicale(?!/\.web)">
|
||||
<LocationMatch "^/radicale(?!/\.(web|token))">
|
||||
RequestHeader set X-Script-Name /radicale
|
||||
|
||||
<IfDefine !RADICALE_SERVER_USER_AUTHENTICATION>
|
||||
@@ -221,7 +221,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||
RewriteCond %{REQUEST_METHOD} GET
|
||||
RewriteRule ^/$ /.web/ [R,L]
|
||||
|
||||
<LocationMatch "^/\.web.*>
|
||||
<LocationMatch "^/\.(web|token).*>
|
||||
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
|
||||
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
|
||||
|
||||
@@ -237,7 +237,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||
</IfDefine>
|
||||
</LocationMatch>
|
||||
|
||||
<LocationMatch "^(?!/\.web)">
|
||||
<LocationMatch "^(?!/\.(web|token))">
|
||||
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
|
||||
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
|
||||
|
||||
@@ -292,7 +292,7 @@ CustomLog logs/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
||||
|
||||
WSGIScriptAlias / /usr/share/radicale/radicale.wsgi
|
||||
|
||||
<LocationMatch "^/(?!/\.web)">
|
||||
<LocationMatch "^/(?!/\.(web|token))">
|
||||
<IfDefine !RADICALE_SERVER_USER_AUTHENTICATION>
|
||||
## User authentication handled by "radicale"
|
||||
Require local
|
||||
|
||||
Reference in New Issue
Block a user