mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3732] [bug]: 404 when ENABLE_SUBPATH_BASED_ACCESS=true #1293
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1293
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mstimvol on GitHub (Jan 8, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3732
Is there an existing issue for this?
Current behavior
I've the following env file:
And my docker-compose file looks like:
I want being able to access hoppscotch using subpaths (https://docs.hoppscotch.io/documentation/self-host/enterprise-edition/install-and-build#subpath-based-access), but when I try to access hoppscotch, I'm always getting a 404 page. When I set
ENABLE_SUBPATH_BASED_ACCESS=false, it works. I also tried the tag 2023.12.0 because https://github.com/hoppscotch/hoppscotch/pull/3449 seems to be part of it but still the same 404 error. Any idea what I'm doing wrong here?I assume it's a bug because when I set
ENABLE_SUBPATH_BASED_ACCESS=falseI can access hoppscotch without any issue.Steps to reproduce
ENABLE_SUBPATH_BASED_ACCESSto your hoppscotch .env file and set it truepnpx prisma migrate deploy)Environment
Production
Version
Self-hosted
@mstimvol commented on GitHub (Jan 8, 2024):
After reviewing the Caddyfile I got the idea... the reason I'm getting 404 is that I'm trying to access port 3000. Instead of this, I've to use port 80. I wasn't aware about this difference. So no bug... just my ignorance, sorry!
@musuyaba commented on GitHub (Sep 1, 2024):
I'm sorry. Could you please confirm if you've also updated the .env file? Perhaps with values like these?
@boiyelove commented on GitHub (Sep 18, 2024):
@musuyaba are you saying that when using a custom tld, the VITE...URLS still need to be localhost?