Skip to content

Commit 7e3ba7d

Browse files
committed
fix nginx location regexp
1 parent 3fd173b commit 7e3ba7d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/content/administration/reverse-proxies.en-us.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ into the `http` section of `nginx.conf`:
6868
```nginx
6969
server {
7070
...
71-
location /gitea {
72-
return 301 $scheme://$host/gitea/;
73-
}
74-
location ~ ^/(gitea|v2)/ {
71+
location ~ ^/(gitea|v2)($|/) {
7572
client_max_body_size 512M;
7673
7774
# make nginx use unescaped URI, keep "%2F" as-is, remove the "/gitea" sub-path prefix, pass "/v2" as-is.

0 commit comments

Comments
 (0)