[Docs] Instructions for Apache reverse proxy with Certbot #4489

Closed
opened 2025-11-02 05:52:31 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @nztim on GitHub (Dec 15, 2019).

I've just spent a bit of time trying to configure Apache as a reverse proxy for Gitea. It works fine as per the docs until you want to use Certbot. It seems to me that the configuration in the docs results in the acme challenge being proxied to Gitea (and a 404) regardless of whether you have a document root, an alias in place or anything.

The solution I used was to add ProxyPass /.well-known ! on the line before ProxyPass / http://localhost:3000/ nocanon, there may be other solutions. Do you think this would be useful to add to the docs?

Originally created by @nztim on GitHub (Dec 15, 2019). I've just spent a bit of time trying to configure Apache as a reverse proxy for Gitea. It works fine as per the docs until you want to use Certbot. It seems to me that the configuration in the docs results in the acme challenge being proxied to Gitea (and a 404) regardless of whether you have a document root, an alias in place or anything. The solution I used was to add `ProxyPass /.well-known !` on the line before `ProxyPass / http://localhost:3000/ nocanon`, there may be other solutions. Do you think this would be useful to add to the docs?
GiteaMirror added the issue/staletype/docs labels 2025-11-02 05:52:31 -06:00
Author
Owner

@lunny commented on GitHub (Dec 16, 2019):

Please send a PR and we can discuss there.

@lunny commented on GitHub (Dec 16, 2019): Please send a PR and we can discuss there.
Author
Owner

@stale[bot] commented on GitHub (Feb 14, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 14, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@techknowlogick commented on GitHub (Feb 14, 2020):

Closing as this has been added to docs

@techknowlogick commented on GitHub (Feb 14, 2020): Closing as this has been added to docs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4489