Quantcast
Channel: iRedMail 开源邮件服务解决方案 - iRedMail 技术支持
Viewing all articles
Browse latest Browse all 1467

回复: iRedmail安装好后,默认地址:https://IP地址/mail;怎样将地址中的mail修改成webmail?

$
0
0

hi, 無色天空 ,版主.
我在 iredMail 0.9.8 版本時, 更改無效:

/etc/nginx/templates/roundcube.tmpl
location ~ ^/webmail/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; }

location ~ ^/webmail/(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 ~ ^/webmail(.*)\.php$ {         
    include /etc/nginx/templates/hsts.tmpl;
    include /etc/nginx/templates/fastcgi_php.tmpl;
    fastcgi_param SCRIPT_FILENAME /var/www/roundcubemail$1.php;
}

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

#不使用自動 redirect webmail網址 ;
location /webmail {
               rewrite ^/* /webmail last;
        }



## 不自動redirect 到 mydomain.com/mail  ; 把index.html 取消
mv /var/www/html/index.html  /var/www/html/index.html.orig


請指導一下 , 願聞其詳.
謝謝.


Viewing all articles
Browse latest Browse all 1467

Trending Articles