Topic: nginx error 502 Bad gateway
Hi,
i'm facing an issue with nginx. I got a 502 Bad gateway nginx error when trying to access to https://my-domain/iredadmin/
The file /var/run/uwsgi_iredadmin.socket don't exist. See nginx error.log bellow
2015/05/29 08:55:04 [crit] 4054#0: *119 connect() to unix:/var/run/uwsgi_iredadmin.socket failed (2: No such file or directory) while connecting to upstream, client: x.x.x.x, server: _, request: "GET /iredadmin/ HTTP/1.1", upstream: "uwsgi://unix:/var/run/uwsgi_iredadmin.socket:", host: "xxxxxxxxxx"
PS: service uwsgi status => uwsgi is running
i've installed iRedmail with : bash -x iRedMail.sh 2>&1
In the terminal output i can see this :
+++ export IREDADMIN_HTTPD_CONF=/iredadmin.conf
+++ IREDADMIN_HTTPD_CONF=/iredadmin.conf
and we have the same for CLUEBRINGER_HTTPD_CONF=/cluebringer.conf, and so on ...
After investigation :
[root@my-domain ~]# grep IREDADMIN_HTTPD_CONF /root/iRedMail-0.9.1 -R
/root/iRedMail-0.9.1/conf/iredadmin:export IREDADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/iredadmin.conf"
it means that the variable $HTTPD_CONF_DIR is equal to "" during install process. I'm using nginx web server not apache.
Could you please have a look ?
Thanks in advance.
-------------------------------------------------------------------------------------------------
- iRedMail version: 0.9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB)
- Web server (Apache or Nginx): Nginx
- Linux/BSD distribution name and version: CentOS Linux release 7.1.1503 (Core)
- Related log if you're reporting an issue: /var/log/nginx/error.log
- Dedicated server (Not virtual machine)
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.