1

Topic: IP urls return not found.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): latest
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: CENTOS 7.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Greetings, I am attempting to use the API in IRedMail Pro, however, I am receiving a 404 not found error in response.

when I try to get the operation '/iredadmin/api/login', the logs show as follows:

Access log:
X.X.X.X - - [19/Oct/2020:13:10:35 -0400] "GET /iredadmin/api/login HTTP/1.1" 404 40 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
X.X.X.X - - [19/Oct/2020:13:10:55 -0400] "POST /iredadmin/api/login HTTP/1.1" 404 19 "-" "curl/7.29.0"

Error Log:
2020/10/19 12:56:19 [error] 6925#0: *219909 open() "/var/www/html/api/login" failed (2: No such file or directory), client: 74.80.18.51, server: _, request: "GET /api/login HTTP/1.1", host: "mail.repchecks.com"
2020/10/19 13:02:40 [error] 6925#0: *220067 "/var/www/html/api/index.php" is not found (2: No such file or directory), client: 74.80.18.51, server: _, request: "GET /api/ HTTP/1.1", host: "mail.repchecks.com"

it looks like it's pointing to the wrong direction.
How do I fix this?

Thanks!

----

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

2

Re: IP urls return not found.

Did you restart "iredadmin" service to load modified settings?

3

Re: IP urls return not found.

Thank you.  I didn't realize I had a service restart issue.  appreciate it.