-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Page 404 #6556
Comments
Try http://172.18.40.99:3001/admin or http://172.18.40.99:3002/admin. (I'm not sure) |
Thanks for the suggestion. I tried it and these two links still show page 404. The difference is that when I visit 3001, the page has a return button, but there is no response when I click it. |
I think your nginx config does not work because the rule for admin endpoint (3002) will fall to the root endpoint (3001) first... So it ends up trying to find a page route called Check our official documentation for reverse proxy configuration: |
Thank you for your answer. I modified my Nginx configuration according to the official documentation, but it doesn't seem to solve the problem. `server {
}` This way it will give priority to the management interface that matches port 3002. But the result is same. |
|
Hi, logto:
image: svhd/logto:latest
container_name: logto
restart: unless-stopped
platform: ${PLATFORM}
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@logto-db:5432/logto
- ENDPOINT=https://logto.${DOMAIN}
- ADMIN_ENDPOINT=https://logto.${DOMAIN}/admin/
networks:
- services
- logto
depends_on:
logto-db:
condition: service_healthy
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ADMIN_ENDPOINT is configured, and I too am trying to have the admin UI on a subpath. This double subpath is working with every other site I have where I also have 2 different locations. Do you have idea why I still have 404 ? |
I think the issue comes from here:
Try |
Thanks for pointing out the error. I changed this so now instead of Page 404 it's ERR_SSL_PROTOCOL_ERROR. |
I'm closing the issue right now since the original issue is resolved. Please feel free to open a new one if needed. |
Describe the bug
I set up Nginx proxy and when I want to access the admin management interface, a 404 page is displayed.
Expected behavior
Want to access the management interface normally.
How to reproduce?
According to my current configuration, directly access the https://172.18.40.99/admin address to reproduce
Context
My docker seeting is:
sudo docker run -d
--name logto
-p 3001:3001
-p 3002:3002
-e TRUST_PROXY_HEADER=1
-e ENDPOINT=https://172.18.40.99
-e ADMIN_ENDPOINT=https://172.18.40.99/admin
-e DB_URL=postgresql://postgres:[email protected]:5432/logto
ghcr.io/logto-io/logto:latest
My Nginx seeting is:
server {
listen 443 ssl;
server_name 172.18.40.99;
}
Screenshots
The text was updated successfully, but these errors were encountered: