Upstream nginx with multiple instances

Infos:

  • Used Zammad version: 6.x
  • Used Zammad installation type: (package)
  • Operating system: Ubuntu Server 22.04 LTS
  • Browser + version: Chrome, Edge “last update stabil”

Expected behavior:

Normal Access to my Instances

Actual behavior:

Hello all,
I am planning to deploy multiple Zammad instances, all instances are accessible via separate addresses running on the same IP address. Upstream is a Nginx that distributes the accesses.

The nginx of the Zammad installation from repository for Ubuntu is disabled and the ZAMMAD_BIND_IP is on 10.10.10.51. Using nmap I was able to confirm this as well.

The nginx in front points with its upstream gateways for port 3000 and 6042 to the IP 10.10.10.51.

Now when I want to reach one of the Zammad instances, only the text “Loading…” comes up nothing more.
Does anyone have an idea why this happens, that is that the interface does not load properly. ???

zammad_nginx_problem

Hi @bulletCatcher, did you check if there are any errors logged in your browser’s console as well as your production.log?

Yes, in the developer console of the browsers you can see that the browser can load the html file and then can’t get to the assets due to a 403 message.

so far I could not resolve the 403 message.

The folders belong to the user zammad with the rights U=rwx,G=RX,O=RX

I have solved the problem, the first nginx must be set as follows, then the second nginx belonging to zammad can run without changes and everything works.

Example configuration for the first nginx
server {
listen 80;
server_name example.com;

location / {
    proxy_pass http://ziel-nginx-server$request_uri;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
}

}

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