Forward the traffic from the ISPConfig website to Zammad system

Discussion in 'Installation/Configuration' started by Cesar.ortegon, Apr 4, 2024.

  1. Cesar.ortegon

    Cesar.ortegon New Member

    I have installed ispconfig on debian 12 with the autoinstaller and nginx, on the same server I have installed zammad with docker-compose. Zammad I have assigned a different port to access zammad. port 8082. In ispconfig, I create the website for zammad on ispconfig. From the public IP I can access zammad with the port xxxxxxxxx:8082

    but I have not been able to forward the traffic from the ISPConfig website (port 80 and 443) to Zammad using a proxy in nginx directives field of the website in ISPConfig. I've tried, but I really don't know how to do it. Thanks if you can help me.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I don't know about Zammad but nginx proxy to docker should be straight forward, so, what have you tried and what failed?

    There are several discussions on proxy to docker already.
     
  3. Cesar.ortegon

    Cesar.ortegon New Member

    I honestly don't know how to do it, I only know that you have to create a website in ispconfig and forward it, but I don't know what to put in the forward of the website and also what to put in the nginx directives on that website
     
  4. Cesar.ortegon

    Cesar.ortegon New Member

    I get this config, and works for me, if any need to forward your website to docker-compose:

    Create a website on ispconfig. Check a ssl and Let's Encrypt SSL.
    Go to options website:
    and try with this:
    location / {
    proxy_pass http:127.0.0.1:8082;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    client_max_body_size 1M;
    }

    Change your port if you have another port, i put 8082 couse that is my zammad server runing on docker-compose. and put // on http couse i cant send links.

    Thanks
     
    ahrasis likes this.

Share This Page