How to deploy under a non-root directory? #14843

Closed
opened 2025-11-02 11:24:16 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @okuc on GitHub (Aug 8, 2025).

Description

How to deploy under a non-root directory? When I set ROOT_URL = http://localhost:3000/gitea/, the homepage shows the following error when opened. How should I handle this?

Image

Gitea Version

1.24.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

How to deploy under a non-root directory? When I set ROOT_URL = http://localhost:3000/gitea/, the homepage shows the following error when opened. How should I handle this?

Database

None

Originally created by @okuc on GitHub (Aug 8, 2025). ### Description How to deploy under a non-root directory? When I set ROOT_URL = http://localhost:3000/gitea/, the homepage shows the following error when opened. How should I handle this? <img width="486" height="178" alt="Image" src="https://github.com/user-attachments/assets/61b95207-28cc-4f86-94d4-15cffbb98545" /> ### Gitea Version 1.24.4 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? How to deploy under a non-root directory? When I set ROOT_URL = http://localhost:3000/gitea/, the homepage shows the following error when opened. How should I handle this? ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 11:24:16 -06:00
Author
Owner

@techknowlogick commented on GitHub (Aug 8, 2025):

Which reverse proxy are you using? (Apache, nginx, caddy, etc...)

@techknowlogick commented on GitHub (Aug 8, 2025): Which reverse proxy are you using? (Apache, nginx, caddy, etc...)
Author
Owner

@GiteaBot commented on GitHub (Sep 7, 2025):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Sep 7, 2025): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14843