Caddyfile root path not render
How to solve this? (
/admin/users/
works fine)
25 Replies
Project ID:
N/A
link to the proxy's domain please
oh maybe i forgot to set base url in project (skill issues )
the caddyfile you sent, is that your entire caddyfile?
no actually it's
nvm i think
it's render only
/admin/
but not work for /admin
do i need to make it handle /admin
too?/admin
would count as a frontend path, and you should leave it that way
you can setup a redirect if you absolutely think it's necessaryalright, i'll try that
keyword, if it's absolutely necessary
hmm can you give me some example?
it's slightly necessary because i separate backoffice project and storefront project
and backoffice has same problem too
you already said you can access it from
/admin/
so i dont see the issue?yeah but
/admin
without /
at end of path is not workright but why does that matter?
im afraid that my team will confuse abit why they can't access admin route (so they don't know that need to add
/
in the end of path)tell them 🤣😆
yeah ill try but
it's would be great if I can make it work
then do the redirect
with caddy?
yes
Solution
don't have any alternative way to solve this right?
just personal curious, maybe i'll need to use alternative way in the future
whats wrong with the redirect
nah it's work great but i just curious
the redirect would be the best method, you cant match to
/admin*
since that would also match /admin123445
and you can see how that wouldn't be idealalright i see
i have no question now tysm!
no problem!