Created
August 27, 2017 10:19
-
-
Save bilaschandra/9641ecf02da0f99fa1ce78b0a49de28e to your computer and use it in GitHub Desktop.
Nginix config for phpmyadmin in hosting
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 for nginx | |
location /phpmyadmin { | |
root /usr/share/; | |
index index.php index.html index.htm; | |
location ~ ^/phpmyadmin/(.+\.php)$ { | |
#try_files $uri =404; | |
root /usr/share/; | |
#fastcgi_pass 127.0.0.1:9000; | |
fastcgi_pass unix:/tmp/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { | |
root /usr/share/; | |
} | |
} | |
location /phpMyAdmin { | |
rewrite ^/* /phpmyadmin last; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment