17 lines
539 B
Plaintext
17 lines
539 B
Plaintext
|
#### 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; }
|