Reverse Proxy on NGINX for MIAB

but same result, only NGINX rule them all.no apache

hi, can you pass me code what did you insert to nginx/sites-enabled?
thx

@Vigo

not sure what you’ve done up to this point, so delete the files or reverse it.

go to /etc/nginx/conf.d

make a new file → proxy.conf

server {
server_name [YOURFQDNFORYOURSERVER  i.e.  helpdesk.example.com Goes Here... remove brackets];
location / {
proxy_pass http://IP-OF-BACKEND-SERVER:80;
proxy_set_header Host $host;
}
}

restart the nginx service → service nginx restart

just tested and it works fine…

nothing, only nginx no apache. I gues it is above my skill for now.
Thank you for your time. if i find solution i will send you message.
:flushed: :disappointed_relieved:

Did you try this?
I can confirm it works fine.

Fair warning that this is a reverse proxy for Matrix so I don’t think this will help in anyway…

    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    # For the federation port
    listen 8448 ssl http2 default_server;
    listen [::]:8448 ssl http2 default_server;

    server_name example.domain.tld;
    ssl_certificate /home/user-data/ssl/your.pem;
    ssl_certificate_key /home/user-data/ssl/ssl_private_key.pem;

    location ~ ^(/_matrix|/_synapse/client) {
        # note: do not add a path (even a single /) after the port in `proxy_pass`,
        # otherwise nginx will canonicalise the URI and cause signature verification
        # errors.
        proxy_pass http://localhost:8008;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Host $host;

        # Nginx by default only allows file uploads up to 1M in size
        # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
        client_max_body_size 50M;
    }
}
`

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.