IPv6 request for phpmyadmin gives 404 error

Freddy

Verified User
Joined
Apr 14, 2016
Messages
123
When using phpMyAdmin from on IPv4 client address everything works fine. My Apache access logs in apache show these lines that I picked as an example.

Code:
91.xx.xx.xx - - [31/Oct/2024:16:43:13 +0100] "GET /phpMyAdmin/ HTTP/1.0" 200 19406 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
91.xx.xx.xx - - [31/Oct/2024:16:43:13 +0100] "GET /phpMyAdmin/js/vendor/jquery/jquery.min.js?v=5.2.1 HTTP/1.0" 200 848 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"

But when I use an IPv6 client address then the Apache access logs shows these lines.

Code:
2a01:xx:xx:xx::xx - - [31/Oct/2024:16:42:49 +0100] "GET /phpMyAdmin/ HTTP/1.0" 200 23098 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"
2a01:xx:xx:xx::xx - - [31/Oct/2024:16:42:49 +0100] "GET /phpMyAdmin/js/vendor/jquery/jquery.min.js?v=5.2.1 HTTP/1.0" 200 4551 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Saf>
2a01:xx:xx:xx::xx - - [31/Oct/2024:16:42:49 +0100] "GET /phpMyAdmin/nginx_static_files/phpMyAdmin/js/vendor/jquery/jquery.min.js HTTP/1.0" 404 4723 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko>

As you can see the request for jquery.min.js is double, and the second one fails with a 404. The nginx_static_files path makes it look like this request should be handled by Nginx but gets forwarded to Apache for some reason. This makes phpMyAdmin fail because the js file is not loaded. It looks like all js and css files are not loaded. Thay all show 404 errors.

What is going on here?
 
Look like it same issued with me. All my addition IPs that's using IP Links will broken all asserts.

I just workaround by customize "nginx.conf" and comment out "direcadmin-ips.conf" line.
 
Last edited:
Look like it same issued with me. All my addition IPs that's using IP Linos will broken all asserts.

I just workaround by customize "nginx.conf" and comment out "direcadmin-ips.conf" line.

Why is nobody else experiencing this problem? Your post is 3 years old! And it looks like I have multiple servers with this problem.

The same problem seemed to have occurred with a customer where Roundcube didn't load static resources when accessing Roundcude through the servers own hostname (my.server.com/roundcube). When using his own domain name it did work (customer.com/roundcube). At that time I couldn't find the cause but now it makes sense. Does your fix include that? Testing this is difficult because I do not have an IPv6 address myself.
 
I am using Nginx_apache configuration and it looks like there are 2 nginx.conf files.

/usr/local/directadmin/custombuild/configure/nginx/conf/nginx.conf
/usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx.conf

Which one to edit, and which command to rebuild the configuration?
 
Ok, it seems to work. Hopefully this doesn't break anything else.

I commented out the line
Code:
include /etc/nginx/directadmin-ips.conf;
in the nginx_reverse configuration file.
/usr/local/directadmin/custombuild/configure/nginx_reverse/conf/nginx.conf

After that I ran
Code:
da build rewrite_confs

But I guess any Directadmin update will overwrite my nginx_reverse configuration file and undo this fix. So maybe a developer could look into this?
 
But I guess any Directadmin update will overwrite my nginx_reverse configuration file and undo this fix.
just put into "./directadmin/custombuild/custom/nginx_reverse/conf/nginx.conf"

Does your fix include that?
All static files of webapp ( phpmyadmin , roundcube ) that have size more than 1mb.
 
Back
Top