Comments (8)
Your reverse proxy is likely not sending a Host
HTTP header or is sending an unexpected value.
The request seems to be reaching Traefik, but it responding with "404 not found" is an indication that you're either not specifying a Host
or you're specifying something that it doesn't recognize.
You can refeer to tour nginx example reverse-proxy configuration:
from matrix-docker-ansible-deploy.
Good evening,
Thank you very much for your feedback. So far I have limited myself to editing the two files. Do I have to carry out all other configurations directly on the matrix server or am I wrong? If so, where can I start? Because I have specified in the vars.yml
that I use my own reverse proxy and I have specified an IP address. Can I change the configurations on the matrix server directly without them being undone, for example, if I make further configurations on the Ansible side?
Thank you for your feedback and have a nice weekend, Patrick
from matrix-docker-ansible-deploy.
Alll your modifications go to inventory/hosts
or inventory/matrix.DOMAIN/vars.yml
.
The matrix.conf
file I've linked to above is an example file that you can copy into your nginx configuration. You're not really using regular nginx though, so it doesn't really apply to you. That said, it can serve as inspiration.
I'd say there's nothing left for you to do on the Ansible side. Services should be configured correctly. You just need to fix your CloudPanel reverse-proxy server to send the appropriate Host
header when sending requests to the Traefik server.
from matrix-docker-ansible-deploy.
Another question:
Shouldn't I also be able to call the Matrix Server internally? For example; http://10.0.1.110:8449
.
Here I get the same error message as shown above. if I call it internally, I do not go via the ReverseProxy but directly to the server. why do I get the same error message 404 page not found
?
from matrix-docker-ansible-deploy.
Calling via the IP does not pass a Host
header, so it won't work.
If you modify your hosts
file (/etc/hosts
on UNIX, C:\Windows\something\something\hosts
on Windws) and hardcode matrix.DOMAIN
to go to 10.0.1.110
, you may be able to open http://matrix.DOMAIN:PORT
and reach it locally.
from matrix-docker-ansible-deploy.
I have the same behaviour when I do it the way you just described:
I think there is something wrong with the configuration.
I have certainly done something wrong, but what have I done wrong? :/
from matrix-docker-ansible-deploy.
Having the same issue. Did you manage to fix it?
from matrix-docker-ansible-deploy.
I am using nginx with the config similar to what @spantaleev linked above, but when I try to connect through that reverse proxy, I get 504 Gate Time-Out. When I try to use curl, I get 404. In my case, the matrix server and the NGINx are on separate machines in a VPN. I have added '10.10.0.1' (the IP of the reverse proxy) to devture_traefik_config_entrypoint_web_forwardedHeaders_trustedIPs, and NGINx routes its requests to 10.10.0.3 (the matrix server)
EDIT: I am able to get through with curl --header 'Host: matrix.domain.tld' http://10.10.0.3:8449/_matrix/federation/v1/version
, but it only works from the matrix server, not from the reverse proxy machine.
journalctl --since "now" -xfeu matrix-traefik.service
does not show any logs when making a request from the proxy machine.
EDIT2: My issue was caused by the (initial) lack of proxy_set_header Host $host;
in my NGINx config, and later by incorrect firewall settings (the ports were not open)
from matrix-docker-ansible-deploy.
Related Issues (20)
- Error in /roles/galaxy/systemd_service_manager/tasks/restart_specified.yml HOT 1
- matrix-bot-draupnir is still unable to start HOT 1
- MatchingServerName after installing HOT 2
- Default Configuration File Error and Cross-Site Access Issue with Etherpad Integration in Jitsi Meet HOT 3
- mautrix-slack configuration format outdated HOT 5
- Feature Request: Enhanced Support for TURN Multiplexing with Cloudflare Calls in Jitsi Meet Deployment
- .well-known folder missing
- Signal bridge encryption not working after changing to double puppet appservice HOT 3
- Traefik error on new install HOT 2
- Mautrix whatsapp and telegram bots not working HOT 1
- Using IP:port values in coturn bind_port vars breaks prosody config HOT 2
- Outdated client when trying to login whatsApp bridge bot HOT 1
- My Laptop SSD corrupted and I lost my config without a backup. What now? HOT 1
- Change root data folder HOT 1
- Config for Signal doesn't change the Name HOT 2
- matrix-media-repo: Generate media-repo signing key fails
- heisenbridge media_path prefix wrong in traefik HOT 1
- cannot pull the new synapse-admin fork docker image from etke.cc
- Access Tokens for BaiBot HOT 1
- SSH Port for Borg Backup HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-docker-ansible-deploy.