1

Topic: [adminer] 404 - adminer.css not found

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

Good day and good night everyone!

I "activated" adminer.tmpl and can use adminer properly.

But installing a CSS style sheet for adminer does not work for me for now.
I just download an adminer.css file from adminer.org and place it in the same directory.
But I get 404 errors in the nginx logs:
x.x.x.x - - [24/May/2020:23:45:33 +0200] "GET /adminer.css?v=2770569524 HTTP/1.1" 404 564 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
Also, the style of adminer is of course unaltered.

I think I am missing something out in the adminer.tmpl. Do I need to tell nginx to server the adminer.css?
Maybe nginx is confused looking for the css sheet in a "mail" subdir?

Can anyone implement a style sheet for adminer?

----

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

2

Re: [adminer] 404 - adminer.css not found

Append lines below in /etc/nginx/templates/adminer.tmpl, then restart nginx service:

location ~ ^/adminer.css$ {
    alias /opt/www/adminer/adminer.css;
}