[GH-ISSUE #423] Feature Request: Reverse Proxy the Admin Pages #3303

Closed
opened 2026-03-14 22:01:00 +03:00 by kerem · 2 comments
Owner

Originally created by @jpartain89 on GitHub (Aug 5, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/423

Type

  • General question or discussion
  • Propose a brand new feature
  • [ X ] Request modification of existing behavior or design

What is the problem that your feature request solves

Being able to access the admin pages through the regular URL that we setup for the archive.

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

This is sort of in relation to #221, where we'd be able to access the admin pages through an NGINX proxy, making the business end of the ArchiveBox much more easily accessible. Plus, providing a nice how-to plus config example to help us out.

What hacks or alternative solutions have you tried to solve the problem?

I've tried making a reverse proxy configuration similar to my other reverse proxies. It doesn't quite load anything right.

How badly do you want this new feature?

  • It's an urgent deal-breaker, I can't live without it
  • [ X ] It's important to add it in the near-mid term future
  • It would be nice to have eventually

  • [ X ] I'm willing to contribute dev time / money to fix this issue
  • [ X ] I like ArchiveBox so far / would recommend it to a friend
  • I've had a lot of difficulty getting ArchiveBox set up
Originally created by @jpartain89 on GitHub (Aug 5, 2020). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/423 ## Type - [ ] General question or discussion - [ ] Propose a brand new feature - [ X ] Request modification of existing behavior or design ## What is the problem that your feature request solves Being able to access the admin pages through the regular URL that we setup for the archive. ## Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes This is sort of in relation to #221, where we'd be able to access the admin pages through an NGINX proxy, making the business end of the ArchiveBox much more easily accessible. Plus, providing a nice how-to plus config example to help us out. ## What hacks or alternative solutions have you tried to solve the problem? I've tried making a reverse proxy configuration similar to my other reverse proxies. It doesn't quite load anything right. ## How badly do you want this new feature? - [ ] It's an urgent deal-breaker, I can't live without it - [ X ] It's important to add it in the near-mid term future - [ ] It would be nice to have eventually --- - [ X ] I'm willing to contribute dev time / money to fix this issue - [ X ] I like ArchiveBox so far / would recommend it to a friend - [ ] I've had a lot of difficulty getting ArchiveBox set up
kerem 2026-03-14 22:01:00 +03:00
Author
Owner

@pirate commented on GitHub (Aug 5, 2020):

Hmm it should work out of the box with the admin UI behind a reverse proxy. What errors are you seeing exactly?
Here's an example Caddy 2 config:

archive.example.com {
    reverse_proxy 127.0.0.1:<published port>
}
<!-- gh-comment-id:669297651 --> @pirate commented on GitHub (Aug 5, 2020): Hmm it should work out of the box with the admin UI behind a reverse proxy. What errors are you seeing exactly? Here's an example Caddy 2 config: ``` archive.example.com { reverse_proxy 127.0.0.1:<published port> } ```
Author
Owner

@daviddavo commented on GitHub (Aug 2, 2021):

The problem happens when you set the reverse proxy in a subfolder instead of a subdomain

location /archivebox/ fails because it redirects to /public, which does not fall behind the reverse proxy location, so it gets a 404 error

This can easily be fixed with
proxy_redirect / /archivebox/

<!-- gh-comment-id:891353415 --> @daviddavo commented on GitHub (Aug 2, 2021): The problem happens when you set the reverse proxy in a subfolder instead of a subdomain `location /archivebox/` fails because it redirects to `/public`, which does not fall behind the reverse proxy location, so it gets a 404 error This can easily be fixed with `proxy_redirect / /archivebox/`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#3303
No description provided.