Created
February 18, 2015 13:11
-
-
Save vicendominguez/78b1b2893d9dce40d643 to your computer and use it in GitHub Desktop.
phppgadmin as nginx alias inside a server tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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