Zammad behind Nginx or Apache with TLS

Placing Zammad behind Nginx or Apache with TLS, websocket proxying and correct trusted proxies, so client IPs, rate limits and realtime updates work in infrastructure you control.

On this page

How to configure Zammad behind Nginx or Apache with TLS

A helpdesk team needs HTTPS, realtime updates and correct client IP addresses before Zammad goes live, and all three depend on the web server in front of the application. Zammad runs as an application server that does not face the browser directly. A reverse proxy receives every request, terminates TLS with your certificate, and forwards traffic to Zammad. Nginx and Apache are the supported proxies, so the first decision is which one your operations team can patch, monitor and explain during an incident. For most teams that already run Nginx, Nginx is the straightforward choice. Apache is the choice when Kerberos single sign-on is required, because that setup depends on Apache modules.

The proxy sits on three paths that matter to users. Ordinary page requests and API calls pass through as HTTP. Realtime updates, such as new tickets appearing for agents without a page reload, use websocket connections that the proxy must upgrade and keep open. Attachments and large uploads depend on request size limits set at the proxy. Each path can fail in a different way, so test all three after configuration: open a ticket view in two browser sessions, confirm that an update in one appears in the other, and upload a file near your expected maximum size. Your certificate chain, the public host name and the HTTP type setting in Zammad must agree with what the browser sees, or redirects and websocket connections will break.

Client IP addresses need a separate check. Zammad trusts only the loopback addresses by default for the RAILS_TRUSTED_PROXIES setting, so if your proxy runs on another host or in another container, Zammad will record the proxy address as the client and rate limits will apply to all users at once. Add the proxy addresses to RAILS_TRUSTED_PROXIES, and plan a restart whenever proxy addresses change, because host names are resolved only at startup. Confirm the setting by checking the client address in a Zammad log entry for a test login. Your package or container layout determines where these settings live, so confirm the exact file and variable names against the Zammad web server configuration guide for your version.

How requests reach Zammad through the web server

A request starts in the agent's or customer's browser and reaches the TLS-terminating proxy, which is either Nginx or Apache. The proxy forwards normal page requests to the Zammad application and sends websocket traffic on the same front door, while Zammad uses Redis for realtime updates. The trust boundary sits between the proxy and Zammad: Zammad only believes the forwarded client address from proxies listed in RAILS_TRUSTED_PROXIES. Check that boundary first when client IPs or rate limits look wrong.

Browser traffic passes the TLS proxy before reaching Zammad and its realtime path.

Which web server and proxy settings fit your environment

This table compares Nginx and Apache, the FQDN and HTTP type settings, trusted proxy handling and certificate sources for Zammad. Use it to match each choice to your existing edge, then confirm the exact directives against the vendor web server configuration page before you build.

DecisionOptionTrade-offWhen it fits
Web server in front of ZammadNginxCommon default in package installs and simple to keep consistent with other services on the hostChoose when no requirement forces another server and your team already runs Nginx at the edge
Web server in front of ZammadApacheNeeded when Kerberos single sign-on is part of the design, and adds configuration to maintainChoose when Kerberos SSO is required or your standard edge is already Apache
FQDN and HTTP typeSet the public host name and scheme the users actually typeA mismatch causes broken links, redirects and websocket problems that look like application faultsAlways set; confirm the exact setting names on the vendor web server page
Trusted proxiesKeep the default 127.0.0.1 and ::1, then add each proxy IP that reaches ZammadWithout the right entries, client IPs and rate limits point at the proxy instead of the userAny deployment where a reverse proxy or load balancer sits in front of Zammad
Trusted proxy changesRestart Zammad after proxy IPs change because host names resolve at startForgetting the restart leaves stale addresses in place after an edge changePlan a restart into every proxy or load balancer change window
Certificate from an internal CAIssued by your private certificate authority and trusted by managed clientsClients outside your trust store will warn, so distribute the root certificate deliberatelyStaff-only helpdesks on a private network or where your policy requires internal PKI
Certificate from a public CAIssued by a publicly trusted authority and renewed on a schedule you setRenewal must reach the proxy without a Zammad outage, and public names are visible externallyCustomer-facing portals and web forms reached from the open internet
Websocket proxyingForward upgrade headers so realtime updates reach agentsMissing headers show stale ticket views rather than a clear errorAlways required for agent screens; verify with a live two-browser test

Setting up the proxy, TLS and trusted proxies

This sequence takes Zammad from a local service to a public HTTPS host that agents and customers can reach, with the proxy passing the correct client addresses to the application. Each step ends with a check, so a failure is caught where it starts. The web server team and the Zammad administrator share the work, in that order.

  1. Choose the public host name and issue the certificate

    Decide the fully qualified domain name that agents and customers will use, create its DNS record pointing at the proxy, and obtain a certificate that covers that name. The web or network team usually owns this work, and the choice between an internal and a public certificate authority is a decision to confirm with your security team. Done means a client on your network resolves the name to the proxy, and the certificate chain validates in a browser and in a command-line TLS check.

  2. Confirm Zammad answers locally before proxying

    Before adding the proxy, confirm the Zammad application responds on the host or container where it runs, so any later failure points to the proxy layer. Send a request to the local Zammad address from the proxy host and confirm you receive the login page or a valid HTTP response. Nginx is the common choice, and Apache is the option to confirm when Kerberos single sign-on is required, since the configuration differs between the two. Done means the local request succeeds from the proxy host.

  3. Configure TLS and forwarding headers in the proxy

    Create the server block or virtual host that terminates TLS, forwards requests to the Zammad backend, and sets forwarding headers so Zammad receives the original host, protocol and client address. The Zammad web server guide shows the exact directives for each server, and you should copy them into your own configuration rather than rely on memory. Done means a request over HTTPS reaches the login page, and a plain HTTP request redirects to HTTPS.

  4. Add websocket upgrade headers for realtime traffic

    Agent screens update live through a websocket connection, so the proxy must pass the protocol upgrade headers to the websocket path that Zammad serves. Redis must also be running, because Zammad requires it for realtime communication. Without the upgrade headers, pages can load while live updates such as new tickets and assignments fail to appear, and the browser console usually shows failed connection attempts. Reload the proxy after the change, then confirm in the browser developer tools that the websocket connection opens during an agent session.

  5. Set the FQDN and HTTP type in Zammad

    In the system settings of the Zammad admin interface, enter the public host name as the FQDN and set the HTTP type to match the scheme users see, which is HTTPS when TLS terminates at the proxy. These values shape the links Zammad generates in notifications and pages, so a mismatch sends users to the wrong address. Save the change, then trigger a notification or open a link Zammad produces and confirm it uses the public HTTPS name.

  6. Add proxy addresses to RAILS_TRUSTED_PROXIES and restart

    By default, RAILS_TRUSTED_PROXIES accepts only the loopback addresses 127.0.0.1 and ::1, so the address of your proxy must be added, or Zammad will not trust the forwarded client address. Set the variable to include the proxy addresses in the environment configuration your install method uses. Host names are resolved at start, so restart Zammad after the change, and restart again whenever the proxy addresses change. Done means the Zammad service starts cleanly with no errors related to the proxy.

  7. Verify client IPs in logs and rate limits

    Send a request from a known workstation, then check the Zammad log entries for that request and confirm the recorded client address matches the workstation. If every entry shows the proxy address, the trusted proxy list is incomplete, so return to the previous step and correct it. Next, run a controlled test of the rate limit that your security team has agreed to in advance, and confirm that limits apply per client address. Done means logs and rate limits reflect individual clients.

  8. Confirm realtime updates in the agent interface

    Sign in as two agents in separate browsers, create or update a ticket in one, and confirm the second browser shows the change without a manual refresh. This test exercises the whole path at once: the websocket headers, the FQDN and Redis. Run it over the public HTTPS name, since that is the path agents will use. Done means the update appears in the second session and the browser console reports no failed websocket connections.

Why trusted proxies decide whether client IPs and rate limits work

Zammad only trusts the proxies you tell it about. The RAILS_TRUSTED_PROXIES setting defaults to 127.0.0.1 and ::1, which covers a web server running on the same host as Zammad. If Nginx or Apache runs on another host, in a separate container network, or behind a load balancer, its address is not in that default list. Zammad then treats the proxy as the client, so every request appears to come from one address. Add each proxy address that sits in front of Zammad to RAILS_TRUSTED_PROXIES before you go live, and test it by checking which address appears in the login and audit entries for a test sign-in from a known workstation.

Host names are resolved at start, so a restart is required when proxy addresses change. If you list a host name instead of an IP, Zammad looks it up once when it starts and does not pick up later changes on its own. Container platforms and cloud load balancers often assign new internal addresses after a redeploy, scaling event or failover. When that happens, client IPs fall back to the proxy address again, and the effect is not visible until someone reviews the logs. Confirm with your platform team whether proxy addresses are stable, and build a restart step into any procedure that replaces the proxy or load balancer.

The wrong proxy setting affects rate limiting and audit trails together. Rate limits keyed on client IP will count all users as one visitor, so a single noisy client can block everyone, or limits never trigger at all because the proxy is the only source. Audit and ticket history entries that record IP addresses will show the proxy rather than the agent or customer, which weakens investigations and any evidence you hand to an auditor. Ask the team that owns your proxy to document its addresses, and make checking the client IP in Zammad part of your go-live test.

When Apache is the right choice for Kerberos SSO

Nginx covers most Zammad reverse proxy setups, but Kerberos single sign-on changes the web server decision. The cards below cover what Apache must handle, how the hostname ties the flow together, and what to confirm before you commit to a design.

Why Kerberos pushes toward Apache

Kerberos single sign-on in a browser relies on the SPNEGO negotiate flow, where the browser presents a ticket that the server must validate before it trusts the user. Teams that need this for Zammad usually end up with Apache in front of the application, because Apache has an established Kerberos authentication path. Confirm with your Zammad version and your Apache packages that this path is supported for your design before you plan around it.

Webserver docs

Keytab and service principal setup

The Apache host needs a service principal and a keytab that the web server can read, issued by the same Kerberos realm your users authenticate against. A keytab file with broad read permissions is a credential exposure, so restrict ownership to the Apache service account. Ask the identity team who creates the principal, how the keytab rotates, and where the keytab is stored.

FQDN must match the service name

The Kerberos service name is tied to the host name the browser uses, so the public FQDN in Zammad, the certificate name and the principal must all agree. A mismatch makes the browser skip negotiation or fail silently, and users see a login prompt that never succeeds. Set the FQDN in Zammad to the exact name users type and verify it before testing SSO.

Authentication path and fallback login

Kerberos login usually sits on one path of the site, so the design must decide which requests go through negotiation and which stay on the normal login page. Keep a documented fallback for users on unjoined devices and for administrators who need to sign in during an identity outage. Confirm the fallback with the identity team before go-live.

Test with a domain-joined client

Test from a domain-joined workstation with a real user account, in each browser your organization supports. Check that a ticket is issued, the user lands in Zammad without a password prompt, and that a logout and login again work. Also test from an unjoined machine to confirm the fallback behaves as designed and does not expose an error page.

Confirm the SSO design with identity

The identity team owns the realm, the trust between domains, the ticket lifetime and the account mapping that decides which Zammad user a Kerberos identity becomes. Agree these answers in writing before build starts: who owns the principal, how users are matched to Zammad accounts, and what happens when an account is disabled. Apache and Zammad settings follow from those answers.

Questions teams ask before configuring the proxy

How much effort does configuring Nginx or Apache in front of Zammad take?

The web server configuration itself is a small part of the work. The effort is driven by how many pieces must line up: the public host name, the certificate chain, websocket proxying, the FQDN and HTTP type settings in Zammad, and the trusted proxy list. Teams with a working reverse proxy elsewhere usually move faster, while teams that also need new DNS records, a certificate authority process or a firewall change add waiting time that they do not control. Ask any provider to break the work into these steps so you can see which ones depend on your own network teams.

Can our internal team configure the proxy without a partner?

Yes, if your team already runs Nginx or Apache with TLS and can test websocket traffic. The Zammad configuration guide describes the proxy settings, and the work is well bounded. A partner adds value where the environment is unusual, such as Kerberos SSO that requires Apache, several proxy hops, or a restricted network where every change goes through a formal window. Decide based on who will own the configuration after go-live, because the trusted proxy list must be maintained whenever proxy addresses change.

What do we need to provide before the proxy work starts?

Plan for four inputs. You need a DNS record for the public host name that points at the proxy, a certificate and private key issued for that name (or a process for renewing one), a test client on the same network path your customers or agents will use, and a network change window if the proxy or firewall rules change. Confirm with your security team how certificates are issued and stored, and confirm which network segment the Zammad application server sits on so the proxy can reach it.

Why do Zammad logs and rate limits show the proxy IP instead of the client IP?

Zammad only trusts the addresses listed in RAILS_TRUSTED_PROXIES when it reads forwarded client information. The default values are 127.0.0.1 and ::1, so a proxy on another host is not trusted and its address appears as the client. Add the proxy addresses to that variable so client IPs are recorded correctly and rate limits apply to the actual source. Check the result by making a request from a known address and reviewing the log entry it creates.

What happens when the IP address of the proxy changes?

Zammad resolves host names in its trusted proxy configuration when it starts, so a change to the proxy's address is not picked up until the application restarts. If the new address is missing from the list, client IPs and rate limiting fall back to the proxy address again. Include the trusted proxy setting in your change checklist, update it before or during the address change, and restart Zammad afterwards. Keeping proxies on stable addresses or using DNS names that you control reduces how often this happens.

Why does websocket proxying need its own check?

Zammad uses websocket communication for realtime updates, and that traffic needs the proxy to pass the upgrade headers through. A page can load over plain HTTP while realtime features silently fail, so test them separately. Open a ticket in one browser session, update it from a second session, and confirm the change appears without a page reload. Redis must also be reachable from the application for this to work, so include it in the test.

When is Apache chosen over Nginx for this setup?

Choose Apache when you need Kerberos single sign-on, since the Zammad documentation for the webserver covers Apache as the option for that case. Nginx is a fine choice when Kerberos is not required. Whichever server you pick, the TLS, websocket and trusted proxy settings must still be correct, and the choice affects which modules and packages your operations team has to maintain.

What to confirm in your environment before go-live

The proxy layer for Zammad touches versions, load balancers, certificates, directory services and upgrade notes at once. Each item below is something to confirm against your own environment and the current vendor documentation, not a fact to assume from this page.

Zammad version and proxy documentation

Confirm which Zammad release you are deploying and read the proxy and web server configuration page for that exact version before writing any configuration. Security and minor releases can change defaults, so check the release notes for the version you intend to run. Record the version in your change ticket so the proxy configuration can be matched to it later during an upgrade.

Web server docs

Websocket behavior on your load balancer

Zammad uses websockets for realtime updates, so the connection must be upgraded and kept open through every hop in front of it. Confirm that your external load balancer, any cloud or appliance proxy, and the Nginx or Apache instance all pass the upgrade headers and allow long-lived connections. Test with two browser sessions and a ticket update, because a broken websocket path often looks like a working page.

Certificate authority requirements

Confirm with your security team which certificate authority issues the certificate, whether an internal CA chain must be distributed to agent workstations, and how renewal is automated. Check the required key length and protocol versions against your baseline. Also confirm that the certificate name matches the FQDN you configure in Zammad, since mismatches break links in notifications and redirects.

Kerberos with your directory setup

If you plan Kerberos single sign-on through Apache, confirm that your directory, keytab handling and DNS records support it in your network before you commit to Apache. Test the ticket flow from a domain-joined client and check how the service principal is issued and rotated. Treat this as a go or no-go item, because switching the reverse proxy later changes the configuration you have already tested.

Trusted proxy addresses after changes

Confirm the address of every proxy hop that reaches Zammad, since the default trusted proxies only cover the local host. Check whether those addresses can change through autoscaling, failover or DNS updates. Host names are resolved at startup, so schedule a restart in your runbook whenever proxy addresses change, or client IPs and rate limits will quietly stop working.

Security and upgrade notes

Check the security advisories and upgrade notes that apply to your version before go-live, and confirm whether any of them change proxy, header or session behavior. Security fixes may ship on more than one release line at the same time, so verify which line your team tracks. Ask your partner or vendor how proxy configuration is reviewed when you apply a patch, so the change is tested in staging first.

Zammad releases

How DeployOpen scopes and delivers Zammad proxy and TLS work

DeployOpen plans and configures the web server in front of your self-hosted Zammad inside your own infrastructure, covering certificates, websocket proxying, FQDN and HTTP type settings and trusted proxies. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • We confirm which web server your team runs, Nginx or Apache, and whether Kerberos SSO requires Apache.
  • We record the public FQDN, certificate source, internal network path and every proxy hop between users and Zammad.
  • The written scope lists the configuration files, test cases, handover documents and any retainer for ongoing support.

How we build

  • We configure TLS termination, HTTP to HTTPS redirection and websocket proxying so realtime ticket updates reach agents.
  • We set the Zammad FQDN and HTTP type settings to match the external address users actually reach.
  • We set RAILS_TRUSTED_PROXIES to include each proxy address so client IPs and rate limits are read correctly, then test with real requests.

How we hand over

  • You receive the web server configuration, environment variable settings and a record of each test result with its date.
  • The runbook explains how to restart Zammad after proxy IP changes, since host names are resolved at start.
  • We walk your administrators through certificate renewal steps and the checks to repeat after any change to the network path.

How we support

  • Retainers can cover certificate renewal checks, proxy configuration changes and retesting after Zammad upgrades.
  • Retesting after a Zammad or web server upgrade is written into the scope when your team wants it included.
  • Support requests are answered against the agreed scope, and changes outside it are quoted before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.