GeneralConfig/nginx/subfolders/phppgadmin.conf

17 lines
545 B
Plaintext
Raw Normal View History

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