Closed
Description
- Gitea version (or commit ref): 1.10.0-rc1 from binary: https://dl.gitea.io/gitea/1.10.0-rc1/gitea-1.10.0-rc1-linux-amd64
- Git version: git version 2.20.1
- Operating system: GNU/Linux Debian 10
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes
(provide example URL) - No (
ROOT_URL
value is different.) - Not relevant
- Yes
- Log gist:
Description
I install Gitea under a sub-path /git/
with Nginx as a reverse proxy.
When I modified "repository name", the old repo link should be redirected to the new link. I am expected it redirect to /git/<OwnerNAME>/<RepoName>/
, but it actually redirect to /<OwnerNAME>/<RepoName>/
.
app.ini:
[server]
PROTOCOL = http
SSH_DOMAIN = localhost
DOMAIN = localhost
HTTP_ADDR = 127.0.0.1
HTTP_PORT = 8000
ROOT_URL = https://example.com/git/
DISABLE_SSH = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = /var/lib/gitea/data/lfs
[...]
nginx.conf:
location ^~/git/ {
proxy_pass http://localhost:8000/;
}
[...]