GeneralConfig/nginx/subfolders/phpmyadmin.conf

17 lines
539 B
Plaintext
Raw Normal View History

2020-06-17 13:31:05 -03:00
#### PHP MY ADMIN SUBFOLDER ####
location /phpmyadmin {
alias /usr/share/webapps/phpMyAdmin;
try_files $uri $uri/ @pma;
index index.php;
access_log /var/log/nginx/phpmyadmin_access.log;
error_log /var/log/nginx/phpmyadmin_error.log;
include /etc/nginx/extra/php-fpm.conf;
location ~ ^/phpmyadmin/(.*\.(js|css|gif|jpg|png|ico))$ {
alias /usr/share/webapps/phpMyAdmin/$1;
}
}
location @pma { rewrite /phpmyadmin/(.*)$ /phpmyadmin$request_uri last; }