E
E
Evgeny Dolbanovsky2018-03-15 18:34:13
Nginx
Evgeny Dolbanovsky, 2018-03-15 18:34:13

NGINX error - duplicate path to index.php?

Comrades, there is a local server with access to the web.
NGINX 1.6.2
Ajenty 1.x panel + Ajenti-V (web hosting bundle)
Set to port 80.
So.
Open locally: 192.168.1.2 phpmyadmin face starts
Open via web: domain.ru phpmyadmin face starts

The task is to force NGINX to open phpmyadmin at the URL: domain.ru/phpmyadmin/

but
at the URL 192.168.1.2/phpmyadmin/ - 404 error
at the domain.ru URL /phpmyadmin/ - 404 error See

phpmyadmin error logs:
2018/03/15 18:21:31 [error] 4055#0: *56 "/srv/phpmyadmin/phpmyadmin/index.html" is not found (2: No such file or directory), client: 94.25.169.95, server: example.com, request: "GET /phpmyadmin/ HTTP/1.1", host: "domain.ru"

Why is the path doubled (duplicated)???

Here is the default Ajenti panel config generated by the panel itself:
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
server_name example.com;
access_log /var/log/nginx/phpmyadmin.access.log;
error_log /var/log/nginx/phpmyadmin.error.log;
root /srv/phpmyadmin;
index index.html index.htm index.php;

location ~ [^/]\.php(/|$) {
fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix: /var/run/ajenti-v-php-fcgi-phpmyadmin-php-fcgi-0.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

I tried different combinations of location, but I just can't figure out what's wrong!
Help me make phpmyadmin start on url, what am I doing wrong.

PS On any port opens without problems.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2018-03-15
@megafax

Judging by the config, you made the opening of the admin right on the host for some reason. Try resetting on mana

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question