Skip to content

Commit 3f66378

Browse files
committed
Removed leftover 'OR', thanks to @jonasbardino
1 parent 8db91c8 commit 3f66378

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mig/install/apache-MiG-template.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
960960
RewriteCond %{REQUEST_URI} ^/(wsgi-bin|cgi-bin|cgi-sid|cgi-cert)/ [OR]
961961
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
962962
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
963-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
963+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
964964
RewriteRule ^ - [L]
965965

966966
# Setup jupyter forward user header
@@ -1402,7 +1402,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
14021402
RewriteCond %{REQUEST_URI} ^/(wsgi-bin|cgi-bin|cgi-sid|cgi-cert)/ [OR]
14031403
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
14041404
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
1405-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
1405+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
14061406
RewriteRule ^ - [L]
14071407

14081408
# Setup jupyter forward user header
@@ -2037,7 +2037,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
20372037
RewriteCond %{REQUEST_URI} ^/(favicon.ico|)$ [OR]
20382038
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
20392039
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
2040-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
2040+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
20412041
RewriteRule ^ - [L]
20422042

20432043
# 2FA helpers based on our own 2FA helper in __MIG_CODE__/cgi-auth/twofactor.py
@@ -2622,7 +2622,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
26222622
RewriteCond %{REQUEST_URI} ^/(favicon.ico|)$ [OR]
26232623
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
26242624
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
2625-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
2625+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
26262626
RewriteRule ^ - [L]
26272627

26282628
# 2FA helpers based on our own 2FA helper in __MIG_CODE__/cgi-auth/twofactor.py
@@ -3518,7 +3518,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
35183518
RewriteCond %{REQUEST_URI} ^/(favicon.ico|)$ [OR]
35193519
RewriteCond %{REQUEST_URI} ^/(wsgi|cgi)-bin/(autocreate|autologout|logout).py$ [OR]
35203520
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known|openid|cgi-sid)/ [OR]
3521-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
3521+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
35223522
RewriteRule ^ - [L]
35233523

35243524
# 2FA helpers based on our own 2FA helper in __MIG_CODE__/cgi-auth/twofactor.py
@@ -4099,7 +4099,7 @@ __IS_VERIFYCERTS_COMMENTED__ <VirtualHost *:${PUBLIC_HTTP_PORT}>
40994099
RewriteCond %{REQUEST_URI} ^/(wsgi-bin|cgi-bin|cgi-sid|cgi-cert)/ [OR]
41004100
RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
41014101
RewriteCond %{REQUEST_URI} ^/(images|assets|public|.well-known)/ [OR]
4102-
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/ [OR]
4102+
RewriteCond %{REQUEST_URI} ^/(seafmedia|seafhttp|seafile)/
41034103
RewriteRule ^ - [L]
41044104

41054105
# Stay on wsgi-bin if user comes from that already, otherwise use cgi-sid

0 commit comments

Comments
 (0)