Matrix Synapse and Nginix

Discussion in 'HOWTO-Related Questions' started by Peter987, Dec 19, 2019.

  1. Peter987

    Peter987 New Member

    Hello, I have trouble:
    I created an Matrix synapse server, listening to example.com on Port 443 (no subdomain)
    If somebody types the address https:// example.com into the browser I want to redirect him to another website. The problem is, that matrix and the https website listen to the same port 443. Is there any way to seperate them.

    If I put this to 443, than the matrix client doesnt work anymore
    server {
    listen 443 ssl;
    listen [::]:443 ssl;
    return 301 https:// another_website.com;

    Any ideas how to solve this problem, without changing the matrix synapse domain?
     

Share This Page