Last active
February 22, 2023 02:37
-
-
Save kittinan/5540c8cd9c90d12835eae6a4e5eace9f to your computer and use it in GitHub Desktop.
phpmyadmin nginx /etc/phpmyadmin/nginx.conf
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
location /phpmy/ { | |
alias /usr/share/phpmyadmin/; | |
index index.php; | |
} | |
location ~ ^/phpmy/(.*\.(js|css|gif|jpg|png))$ { | |
alias /usr/share/phpmyadmin/$1; | |
} | |
location ~ ^/phpmy(.+\.php)$ { | |
alias /usr/share/phpmyadmin$1; | |
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; | |
fastcgi_index index.php; | |
charset utf8; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$1; | |
} |
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
# /etc/phppgadmin/nginx.conf | |
location /phppg/ { | |
index index.php; | |
alias /usr/share/phppgadmin/; | |
} | |
location ~ ^/phppg/(.*\.(js|css|gif|jpg|png))$ { | |
alias /usr/share/phppgadmin/$1; | |
} | |
location ~ ^/phppg(.+\.php)$ { | |
alias /usr/share/phpmyadmin$1; | |
fastcgi_pass unix:/var/run/php/php-fpm.sock; | |
fastcgi_index index.php; | |
charset utf8; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME /usr/share/phppgadmin$1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment