aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Timber <dxdt@dev.snart.me>2024-11-19 07:02:20 +0100
committerDavid Timber <dxdt@dev.snart.me>2024-11-19 07:02:20 +0100
commitfc8a8f370b897dd462b66e1c81fc2e9ed1ec8eca (patch)
tree1b43ea28ab83bdc25052d36618a6bbb7a2256551
parent7818c4d3ed67560f576ce8e12000b85830a5d650 (diff)
Update writeups/cgit/cgit.md ...
- Fix uri rewrite regex for PATH_INFO
-rw-r--r--writeups/cgit/cgit.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/writeups/cgit/cgit.md b/writeups/cgit/cgit.md
index 3064eb2..8bd4c19 100644
--- a/writeups/cgit/cgit.md
+++ b/writeups/cgit/cgit.md
@@ -188,7 +188,7 @@ location /cgit {
gzip on;
# not required for subdomain
- if ( $uri ~* ^/cgit/?(.*)$ ) {
+ if ( $uri ~* ^/cgit(/.*)?$ ) {
set $uri_new $1;
}
@@ -202,7 +202,7 @@ location /cgit {
location ~ /cgit/.+/(info/refs|git-upload-pack) {
# not required for subdomain
- if ( $uri ~* ^/cgit/?(.*)$ ) {
+ if ( $uri ~* ^/cgit(/.*)?$ ) {
set $uri_new $1;
}
include fastcgi_params;