Page 1 of 1

"location" directive is not allowed here in /etc/nginx/conf.d/phpmyadmin.inc:1

Posted: Thu Feb 15, 2018 8:09 am
by Zmaor
I havnt change anything
logged it to the server and Poof


location /phpmyadmin {
alias /usr/share/phpMyAdmin/;

location ~ /(libraries|setup) {
return 404;
}

location ~ ^/phpmyadmin/(.*\.php)$ {
alias /usr/share/phpMyAdmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/phpMyAdmin/$1;
}
}