Skip to content

Instantly share code, notes, and snippets.

@vicendominguez
Created February 18, 2015 13:11
Show Gist options
  • Save vicendominguez/78b1b2893d9dce40d643 to your computer and use it in GitHub Desktop.
Save vicendominguez/78b1b2893d9dce40d643 to your computer and use it in GitHub Desktop.
phppgadmin as nginx alias inside a server tag
## phppgadmin config for nginx (headache)
location ~ ^/phppg {
root /path/path/www/;
location ~ ^/phppg/(.+\.php$) {
root /path/path/www/;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_pass php;
}
location ~* ^/phppg/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /path/path/www/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment