1 (edited by balla.p.daniel 2023-02-09 23:16:42)

Topic: (CLOSED) iRedmail/nginx adding new sub/domain/baikal

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have a functional iRedMail but i`d like to install Baïkal calDAV server.
The content of "/etc/nginx/sites-available/baikal.conf" is the following:

server {
  listen       80;
  server_name  naptar.mysite.com;

  root  /var/www/baikal/html/;
  index index.php;

  rewrite ^/.well-known/caldav /dav.php redirect;
  rewrite ^/.well-known/carddav /dav.php redirect;

  charset utf-8;

  location ~ /(\.ht|Core|Specific|config) {
    deny all;
    return 404;
  }

  location ~ ^(.+\.php)(.*)$ {
    try_files $fastcgi_script_name =404;
    include        /etc/nginx/fastcgi_params;
    fastcgi_split_path_info  ^(.+\.php)(.*)$;
    fastcgi_pass   unix:/var/run/php-fpm.sock;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  PATH_INFO        $fastcgi_path_info;
  }
}

With nginx -t there are no problems.
But when I enter naptar.mysite.com in the address bar it redirects to naptar.mysite.com/mail/ and brings up the roundcube home page.

Any clues where is the bug?

Thank you in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: (CLOSED) iRedmail/nginx adding new sub/domain/baikal

The answer was with fastcgi_pass

On the /etc/nginx/sites-enabled/baikal.conf modified to:
    fastcgi_pass 127.0.0.1:9999;

Cheers,