mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-15 21:00:14 +00:00
[Nginx] Accept a trailing slash in /edit and /qhandler links
This commit is contained in:
1 file changed
+2
-2
@@ -94,11 +94,11 @@ location / {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /qhandler {
|
location /qhandler {
|
||||||
rewrite ^/qhandler/(.*)/(.*) /qhandler.php?action=$1&hash=$2;
|
rewrite ^/qhandler/([^/]+)/(.+?)/?$ /qhandler.php?action=$1&hash=$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /edit {
|
location /edit {
|
||||||
rewrite ^/edit/(.*)/(.*) /edit.php?$1=$2;
|
rewrite ^/edit/([^/]+)/(.+?)/?$ /edit.php?$1=$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/api/v1/(.*)$ {
|
location ~ ^/api/v1/(.*)$ {
|
||||||
|
|||||||
Reference in new issue
Block a user