1

Topic: Change Iredadmin-Pro URL

Hello
How can i change Iredadmin-Pro URL for Security reason
For Example:
www.server.com/iredadmin
                 to
www.server.com/myadmin

Thank You.
Kindly, advise how to change the default access iredadmin urls

==== BASIC INFO OF IREDMAIL SERVER ====
- iRedMail version 0.9.8
- CentOS 7.5
- Store mail accounts in which backend (MySQL):
- Web server (Nginx):
- iRedAdmin-Pro - 0.9.8

====

----

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

2

Re: Change Iredadmin-Pro URL

This is a modified copy of /etc/nginx/templates/iredadmin.tmpl, it should work for you:

# static files under /iredadmin/static
location ~ ^/myadmin/static/(.*) {
    alias /var/www/iredadmin/static/$1;
}

# Python scripts
location ~ ^/myadmin(.*) {
    rewrite ^/myadmin(/.*)$ $1 break;

    include /etc/nginx/templates/hsts.tmpl;

    include uwsgi_params;
    uwsgi_pass uwsgi_iredadmin_workers;
    uwsgi_param UWSGI_CHDIR /var/www/iredadmin;
    uwsgi_param UWSGI_SCRIPT iredadmin;
    uwsgi_param SCRIPT_NAME /myadmin;

    # Access control
    #allow 127.0.0.1;
    #allow 192.168.1.10;
    #allow 192.168.1.0/24;
    #deny all;
}

# iRedAdmin: redirect /iredadmin to /iredadmin/
location = /myadmin {
    rewrite ^ /myadmin/;
}

# Handle newsletter-style subscription/unsubscription supported in iRedAdmin-Pro.
location ~ ^/newsletter/ {
    rewrite /newsletter/(.*) /myadmin/newsletter/$1 last;
}

3

Re: Change Iredadmin-Pro URL

Thank ZhangHuangbin!
Now I can change URL access of Iredadmin page.
And This link also help me.
https://docs.iredmail.org/iredadmin-pro … e.url.html

Best Regard!