1

Topic: host a web site with ired mail

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version : 1.3.2 MARIADB edition
- Linux/BSD distribution name and version: ubuntu 20.04 server
- Web server: Nginx
====
hello, I would like to host a website I made a file with another server name but it doesn't work I am systematically redirected to the login page of the mail client.
has anyone ever had this case?
or can someone explain to me how the configuration of nginx works?
I looked at lots of furum but I can't find an answer.

----

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

2

Re: host a web site with ired mail

> or can someone explain to me how the configuration of nginx works?

https://www.nginx.com/resources/wiki/start/

Minimal sample (etc/nginx/sites-enabled)

server {
    listen 80;
    listen [::]:80;
    server_name client.example.org;

    root /home/client.example.org/www;
    location / {
        index index.html;
    }
}

3

Re: host a web site with ired mail

I'm not sure what folder the nginx config files are in, but in CentOS they are in /etc/nginx  In that  folder you'll find a folder called sites-available.  From there you should be able to figure out how to create a *.conf file for the site you want to serve.

In the example above some of that on an iRedMail server is included in other files.

4

Re: host a web site with ired mail

Shnoulle wrote:

> or can someone explain to me how the configuration of nginx works?

https://www.nginx.com/resources/wiki/start/

Minimal sample (etc/nginx/sites-enabled)

server {
    listen 80;
    listen [::]:80;
    server_name client.example.org;

    root /home/client.example.org/www;
    location / {
        index index.html;
    }
}

hello, thank you for your feedback.
but I think you misunderstood my question.
i made a conf file for the website i would like to host. but when I try to access my site: haristocrate.fr I am automatically redirected to the site : haristocrate.fr/mail (web mai client)
but I would like only mail.haristocrate.fr to be used to access the web mail client.

how can i dot that?

5

Re: host a web site with ired mail

maxwellsmart wrote:

I'm not sure what folder the nginx config files are in, but in CentOS they are in /etc/nginx  In that  folder you'll find a folder called sites-available.  From there you should be able to figure out how to create a *.conf file for the site you want to serve.

In the example above some of that on an iRedMail server is included in other files.


hello, i find the location of the files but as i said before even if i create a file for the site, i am automatically redirect to the web mail client site

6

Re: host a web site with ired mail

I think you need to comment out roundcube in the sites-enabled/00-default-ssl.conf file.

#include /etc/nginx/templates/roundcube.tmpl;

and then restart nginx   systemctl restart nginx

7

Re: host a web site with ired mail

Show us the nginx config file for your website. It's hard to GUESS what the problem is without config file.

8

Re: host a web site with ired mail

for preveneting redirect goto /var/www/html
and rename the file index.html to index.txt
in index.html their is PHP redirector
and i am also struggling for that