Created
January 15, 2014 08:22
-
-
Save DarrylDias/8432620 to your computer and use it in GitHub Desktop.
NGINX phpMyAdmin configuration for Fedora.
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
server { | |
listen 81; #You can change listen to the port you prefer | |
server_name localhost; # the server_name must be changed to the domain if required | |
root /usr/share/phpMyAdmin; # the root must be changed if the path to phpMyAdmin is different | |
index index.php; | |
#charset koi8-r; | |
#access_log /var/log/nginx/host.access.log main; | |
location ~ \.php$ { | |
root /usr/share/phpMyAdmin; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # to get php-fpm running. | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment