#### 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; }