I'm running it on NGINX server, it worked fine untill I enabled authentication gateway.
I generated encrypted passsword using openssl passwd
and added /etc/nginx/pma_pass file with user: encryptedPassword line. Also I added location block inside server block in /etc/nginx/sites-available/default. It looks like this
location /urlpath {
auth_basic "Admin Login";
auth_basic_user_file /etc/nginx/pma_pass;
}
I get authentication prompt followed by 500 no matter what I put in it. What could be the problem here ?
Here's my entire server block:
server {
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name www.domain domain ipaddress;
location ^~ /urlpath {
auth_basic "Admin Login";
auth_basic_user_file /etc/nginx/pma_pass;
try_files $uri $uri/ =404;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
location ~ /\.ht {
deny all;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/path;
ssl_certificate_key /etc/letsencrypt/path;
include /etc/letsencrypt/path;
ssl_dhparam /etc/letsencrypt/path;
}
/var/log/nginx/error.log last entry
2020/07/04 10:57:44 [crit] 18699#18699: *530 crypt_r() failed (22: Invalid argument), client: 82.208.215.144, server: www.whatevs.info, request: "GET /path_phpadmin_is_located_at/ HTTP/1.1", host: "domain"