Topic: Nginx Configuration
==== Required information ====
- iRedMail version : 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL: PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
====
I intend to use nginx for serving both iredmail and a django application on the same instance. My nginx configuration is a bit of a maze. There is no file at /etc/nginx/conf.d , I expected default.conf. Everything seems to run through /etc/nginx/conf-enabled/* and /etc/nginx/sites-enabled/* . I need help configuring a server block for my app on a different port so that I can type example.com/www.example.com and it goes to my django app.
I tried testing with
server {
listen 8080;
server_name example.com www.example.com;
root /var/www/html;
index index.nginx-debian.html;
}
added to /etc/nginx/sites-available/example and sym linked to /etc/nginx/sites-enabled
I removed the redirect on /var/www/html/index.html but I get a blank page
Any assistance is welcome and highly appreciated
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.