Created
October 18, 2019 03:13
-
-
Save codex5/4cfc77832452d33f2d4b136ee69651ab to your computer and use it in GitHub Desktop.
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
## phpMyAdmin configuration | |
location ~ ^/PHPMYADMIN_PLACEHOLDER/(.*)$ { | |
alias /usr/share/phpMyAdmin/$1; | |
location ~ ^/PHPMYADMIN_PLACEHOLDER/(.+\.php)$ { | |
alias /usr/share/phpMyAdmin/$1; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
location ~* ^/PHPMYADMIN_PLACEHOLDER/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { | |
alias /usr/share/phpMyAdmin/$1; | |
} | |
location ~* ^/PHPMYADMIN_PLACEHOLDER/(libraries|setup/lib|setup/frames)/ { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment