1 (edited by t.datta 2015-05-06 15:40:02)

Topic: Open web apps for main domain instead of mail

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache or Nginx): Nginx
- Linux/BSD distribution name and version: CentOS 6.4 x64
- Related log if you're reporting an issue:
====

I have managed to install iRedmail Successfully. Now, I would like to run my drupal webapps on the same domain. Problem is whenever i type the domain name it redirects to /mail by default.
How can I change that and make the subdomain to open drupal instead.

Note: I already have a working config of nginx for drupal. But when I copy paste to default iredmail config, it does not work.

----

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

2 (edited by t.datta 2015-05-06 19:22:28)

Re: Open web apps for main domain instead of mail

I have managed to "/iredadmin" link to work with my main domain. but "/mail" link does not work. I get a message on screen "File Not Found". can someone help please?

Here is my config..

server {
listen    443 ssl;
server_name    abcd.info;
root /srv/www/abcd;
ssl    on;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass php_workers;
}
    # Roundcube webmail
    location ~ ^/mail(.*)\.php$ {
        include fastcgi_params;
        fastcgi_pass php_workers;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME /var/www/roundcubemail$1.php;
    }

location ~ ^/mail(.*) {
alias /var/www/roundcubemail$1;
index index.php;
}

location ~ ^/mail/(bin|SQL|README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ { deny all; }

    # rest of the iRedadmin config below###
}

3

Re: Open web apps for main domain instead of mail

iRedMail generates file /var/www/html/index.html to redirect to '/mail', you can remove/rename this file and try again.