Topic: Admin Panel not working behind NPM Reverse Proxy
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 24.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? n/a
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I recently setup a new iredmail server. Since i run a few servers that require web based stuff i use Nginx Reverse Proxy (NPM) for my web port proxies. During the setup process ive run into the problem of not being able to accsess the admin panel. When I go to it i get an error "502 Bad Gateway" and underneath it says "nginx". However, when i go to the mail login the roundcube pops up as normal. Inside NPM i have port forwarding of https 443 to both mail.mydomain.net and mydomain.net, with SSL certs in there (i did not do the certs with certbot since it wouldnt work for some reason). Whenever I have tried http and port 80 I get a to many ridirects error on the google side. Not sure what do to from here there is little info on this from what ive found.
Any help is appriciated.
Note: all NPM proxies have websockes and common expoit blocks on, and SSL is forced with HTTP/2 support and HSTS enabled.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.