1 (edited by jakob.hahn.92 2023-07-12 22:42:56)

Topic: content of /var/www/html/index.html

Hello folks,
I'am running a iredmail 1.6.2 server on my ubuntu 20.04 with nginx

I've noticed that where is an index.html file that redirects from mydomain.com to mydomain.com/mail

Can anyone sent me the content of this file? It must be a one liner something like:
<HTML> <HEAD> .... <URL /MAIL > something </HEAD> </HTML>

I've deleted it and cannot restore.

Thanks !

----

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

2

Re: content of /var/www/html/index.html

redirect is written in /etc/nginx/templates/roundcube.tmpl

#
# Running Roundcube as a subfolder on an existing virtual host
#
# Block access to default directories and files under these directories
location ~ ^/mail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; }

# Block access to default files under top-directory and files start with same name.
location ~ ^/mail/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; }

# Block plugin config files and sample config files.
location ~ ^/mail/plugins/.*/config.inc.php.* { deny all; }

# Block access to plugin data
location ~ ^/mail/plugins/enigma/home($|/.*) { deny all; }

# Redirect URI `/mail` to `/mail/`.
location = /mail {
    return 301 /mail/;
}

location ~ ^/mail/(.*\.php)$ {
    include /etc/nginx/templates/hsts.tmpl;
    include /etc/nginx/templates/fastcgi_php.tmpl;
    fastcgi_param SCRIPT_FILENAME /opt/www/roundcubemail/$1;
}

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