Hey, I was trying to add a custom Nginx config (for a different subdomain) that forwards to another service on my VPS but for some reason it decides to forward it to Mailcow UI. Can anyone tell me what I’m doing wrong? I posted the important parts of the config below.

 server_name sub.domain.sh;
  location / {
                    proxy_pass http://127.0.0.1:8181;
  }

Hi there, the “important parts” is sadly just not enough to help you. I am running mailcow with many different services on the same server using Nginx as reverse proxy an my SNI dependent forewards work like a charm. Would you mind posting all you configuration files? I had a few problems at the beginning, mostly due to interactions between my configurations.

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    Coronon no problem, I haven’t changed any of the default configs and have only added the custom.conf.

    These are all the contents of custom.conf

    server {
    #        listen 3232;
    #        listen [::]:3232;
            server_name subdomain.domain.sh;
            access_log /var/log/nginx/reverse-access.log;
            error_log /var/log/nginx/reverse-error.log;
    
            location / {
                        proxy_pass http://localhost:32400;
      }
    }```

    Hi,

    I have trouble by configuring the reverse proxy, too.
    The big problem I think is the question “ is there a second nginx Container i have to install for reverse proxy”
    or can I config reverse proxy with the nginx container installed by mailcow-dockerized.

    Sorry for my bad englisch 🙈

    No one is typing